Period related to Endometriosis?

Last year my doctor sent me to Get my uterus scan and came back normal. I had total 3 months period stop and magical appeared, very painful plus sore!