Thanks for the query.
According to your description, the possibilities are :
-Uterine causes like fibroids, endometrial abnormalities
-Local causes like cervical erosion etc.
So you once consult gynecologist, get examined and go for ultrasound
If she suggests go for hormonal profile including thyroid
By these the possible cause for your problem can be identified and treated.