If the sex was rough or you were in a bad position it is quite possible that you irritated ovaries and that they are hurting now. This happens to my girlfriend sometimes. She likes the doggy stile but we always hit the ovaries and then she has cramps for the next two days.
However, if your sexual pain persists, you should see a doctor and have yourself examined. Pain during sex is abnormal and should be assessed. It could be due to certain infections, ovarian cysts, uterine fibroids, tumors, endometriosis, etc