Why did sex hurt??

My boyfriend and I have been having sex for two years so I’m definitely used to it and it hasn’t hurt since the first few times we did it. Until today when we tried to it hurt like it did the first time. It felt really tight and I couldn’t fit it in there without it hurting We used plenty of lube and had foreplay I didn’t stop having sex for a while and just start back either so I don’t know what the problem was. I did mess up and not take my birth control for a week which was three weeks ago but I’m protected now. Has this happened to anyone else ??