You have Kidney
stones disease.The symptoms you are having could be due to stone pieces coming out with urine & irritating the urinary bladder
during their passage causing these symptoms.First thing i would like to advise you will be to get urine biochemical profile involving uric acid,phosphorus,calcium,oxalate
Secondly,Usg KUB & Xray abdomen to look for present stone load &/or its comlications.
Meanwhile,maintain 3-3.5 litrs of fluid intake,avoid bakery products,carbonated drinks.You may try some urinary tract
antispasmodics in case it is very symtomatic
Best of luck