A vaccine works by stimulating the immune system to produce antibodies without actually infecting someone with that disease. They trigger the immune system to produce its own antibodies as though the body has been infected with the disease. But a vaccine will not make someone immune to a disease, it will simply help the body be able fight the infection better.