According to your symptoms
It can be
1)
kidney problem ( stone/hydronephrosis or any other renal pathology
2) spinal cord nerve compression
3) muscular pain
You need to consult a physician..take proper consultation..
Get examined and laboratory tests if he suggests
And start treatment as soon as possible
Next Steps
you can consult me here for further consultation and treatment