Ok a vaccine for polio is just weakened or dead polio cells. When these are injected into your body, your antibodies notice it being injected and they automatically attack it. So the vaccine trains the anitbodies to attack certain cells such as polio, small pox, mumps, measels that stuff