Another cause of uterine problems is infection. Endometritis is an inflammation of the endometrium, the lining of the uterus. It can be caused by certain infections like chlamydia or gonorrhea.