There are a lot of types of vaccines, and they all work a little differently. What they have in common is that they all trigger an immune system response that produces the antibodies that will help your body fight off a virus or infection if you encounter it.