Several uterine conditions can cause pain during sex. These conditions include fibroids, endometriosis, pelvic inflammatory disease, and ectopic pregnancy.