Vaccines provide immunity. Which vaccine are you referring to? Flu shots for example are not vaccines. There are no COVID vaccines.
Flu shots are indeed a vaccine.
I think you're confused by the word "immunity". In the medical sense, it doesn't mean "invincibility". It's a reference to the immune system!