mRNA vaccines, like Moderna or Pfizer's Comirnaty, contain material from the virus that causes COVID-19 that gives our cells instructions for how to make a harmless protein that is unique to the virus. After our cells make copies of the protein, they destroy the genetic material from the vaccine. Our bodies recognize that the protein should not be there and build defensive cells that will remember how to fight the virus that causes COVID-19 if we are infected in the future.
Vector vaccines, like Johnson and Johnson (Janssen), contain a modified version of a different virus than the one that causes COVID-19. Inside the shell of the modified virus, there is material from the virus that causes COVID-19. This is called a viral vector. Once the viral vector is inside our cells, the genetic material gives cells instructions to make a protein that is unique to the virus that causes COVID-19. Using these instructions, our cells make copies of the protein. This prompts our bodies to build specialized cells that will remember how to fight that virus if we are infected in the future.