Why does sex hurt? πŸ˜…

Hope
My boyfriend and I have been having sex since early January; he was my first. It was painful the first couple of times, but it's been enjoyable and pain-free since then. All of a sudden it hurts again! I don't know why. Any insight? I'm super annoyed about it. πŸ˜“