Vaccinations don't stop you getting things. They just help your body defend against infections when they do occur. You still get the disease, but because your immune system already recognises it, you don't (normally) develop symptoms. And if you do, the symptoms aren't as bad as they'd be if you weren't immunised.