vaccinations usually involve injecting small amounts of dead pathogens - these carry antigens which cause your body to produce antibodies to attack them. if pathogens of the same type ever appear again the white blood cells can rapidly produce antibodies to kill off the pathogen