hi there, you have not told us exactly where the pain is and if it is related to any urinary problem or along with any missed period. Assuming that you are a female in a reproductive age group you history is suggestive of two main cause of pain given the vague location of the pain. It could be either a renal colic
caused due to a kidney
stone or it could be due to dysmenehhorea or ectopic related. You need to get a urine exam done, a pregnancy
test and an ultrasound
abdomen to rule out any colic due to renal cause or cholecystitis
or to rule out any extra uterine gestation,.sorry for not being able to give a definitive answer but be specific about the region of pain your age and your sex when you post a query. It helps us understand your problem better and a better solution can be offered Thank you. take care.