The majority of women who have an ectopic pregnancy have experienced inflammation or infection of the reproductive organs. Scarring or tubal problems that remain after the inflammation or infection goes away raise a woman's risk of having an ectopic pregnancy. Some examples are PID and other STIs.