Answer:
During a vaccination, the body is introduced with a weaker, asymptomatic form of a virus. This pathogen will not spread or cause any sickness because it is so weak but the body will learn and recognize in the future the same pathogen non the less. The body still learns to fight the pathogen even if it is weak like in the vaccine.