Pain during sex

I was wondering if anybody could offer me any insight. When me and my boyfriend have sex I typically don't feel any pain. But lately, it's been hurting really bad and we have to stop and I have pain for the next few days afterwards. I was wondering if anyone knows what this could be caused from?