If you get vaccinated against a disease, you usually don't get ill with that disease again. In addition, you rarely transmit the pathogen to others. If enough people are vaccinated, a disease becomes rare or even disappears altogether.