Pain after not having sex for 6 months

Hey everyone, so I’m having an issue. I have been celibate for 6 months now, and yesterday I decided to move on to the next step with my boyfriend. When he tried to put it in, it hurt so bad. It felt like something was blocking it from going in. He did lost of foreplay and I felt ready for it to happen, but it still hurt too bad to continue. What do I do?