There can be multiple reasons
First if you are sexually active, do
pregnancy test
Any stress, infection, medication recently.
What is your BMI. Weight gain?
Any medical condition?
If happened first time, just try to improve lifestyle ( diet n exercise/ yoga). If repeated occurance consultant a good Gynecologist nearby u.