What is the difference between vaccines and medications?

Vaccines prevent diseases, medications treat them.