Is the pain radiating to front side of abdomen or towards hips?
Since how many days you have pain?
Any past medical issue?
Usually such pain is due to kidney stone.Other common causes are -Shingles, Kidney abscess ,Disk disease . Firstly you should get a Renal or abdominal ultrasound and a urine culture , so that diagnosis is made.
So ideally , you should consult your doctor . In the mean time , take plenty of fluids, take motrin, take rest.