Answer:
A vaccine is a weaker version of the virus therefore when you body creates the right antibodies it can kill it. Effectively it is used so when you do catch it the secondary response would be faster because they have the right antibodies already, memory b-lymphocyte hold the it and phagacytes absorbing it~ killing it
So it is the vaccine prevents the vius that causes the measles from entering the body