Based on the symptoms you have, i suggest it to be Urinary Tract Infection
ascending up to the Kidneys. So i recommend you to have some investigations done mainly Complete Blood count
,Urine Examination,Urine Culture and Sensitivity.Based on the investigations take Antibiotics. Drink plenty of water, use urine alkalising medications and Spasmolytics for relief of pain.
Wish you best of Health.