Have you considered actute pancreatitis or chrnic pancreatitis? Look up their symptoms and if you think that is what you have then the first thing to do is to ask your doctor for blood work and an ultrasound.
A complete history, clinical examination and work up is necessary for correct diagnosis and treatment. The common possibilities in your case could be a urinary tract infection, kidney stones,cystitis,ovarian cysts,STIs,PID etc.You should consult a physician ad get evaluated. Treatment will depend on the underlying cause. Hope it helps.
Best luck and regards!