Vaccination only protects if herd immunity is high enough.

But, how does herd immunity work?