Sex problems

So my boyfriend and I haven’t had sex in a month, we recently just had sex and it was extremely painful for me. We had to stop and I was so embarrassed but he understood. It usually doesn’t hurt at all. What does this mean?