If you have not been doing heavy lifting or something else obvious like that, go get checked for possible torsion, or urinary tract issues, or even appendicitis. See your doctor or a urologist.
Hi Ernie, You have been doing some heavey lifting, or straining to get something in place at an awkward angle, if yes then its just a strain, try to give it some rest and it will slowly get better.
Good Luck