Im just confused and worried

In March I had stilborn twins at 26 week and sins then my period just playing games with me it is 1-2 weeks late every month, or skipping One or two months.. the Dr recommended to take te pill but after 6 months of use still no difference... do anyone have advice for me to get my period in order again please..