First of all, you need to undergo one blood test
and TVS scan to rule out possible conception & other pathology.
After that, you can consult with gynecologist to get examined once & proceed other relevant investigations if required. Irregular taking pill may cause the same thing.
Take healthy diet, use some anti-spasmodic medication, drink more water, avoid stress
, maintain genital hygiene and take adequate rest.
Be well and good luck.