Welcome to healthcaremagic.
Do you have fever
As per your description,it seems Urinary tract infection
which is the common cause in cases like yours.It also could be due to stone.
In both cases, you need plenty of fluid intake to flush out infection or stone.
You need urinalysis-urine test -morning sample and may be further investigations-Culture sensitivity.So,consult your physician.