Pain During Sex

I experience pain during sex every once in awhile, and I also feel cramps/pelvic pain, I've mentioned to my OBGYN but she didn't seem concerned. Any ideas why this could be happening?