Tampon pain

So sometimes it really hurts when I first put in my tampon? And then the pain stops... but hurts again when I take it out. I’m 24 so have been using tampons for a looong time.. but I have in the last few months stopped taking my birth control pill? I don’t know if that’s anything to do with it.. but does anyone get this?