This is mainly because of PID (Pelvic Inflammatory Disease). An ultrasound may be required. Consultant your gynecologist. She will advise you the medicines and local ointment. Untreated pelvic infection can damage the tube and cause difficulties in conceiving. So get it treated on priority.