How does vaccination protect an entire population?
It’s called herd immunity. In order for a infectious agent to survive, it has to spread from person to person to reproduce. If a population has a high percentage of people vaccinated, they are protected. The chances are low for an infected person to run into someone susceptible to the disease.