Vaccines are made of dead or inactive pathogens. White blood cells in the body come into contact with the pathogen and produce antibodies which destroy the pathogen. The body produces memory cells which means when it is reinfected by the pathogen, it can quickly produce antibodies to destroy the pathogen before symptoms develop.