Thanks for the query.
According to your description, the problem could be urinary tract infection
or pelvic inflammatory disease
The exact cause can only made out by examination and investigations.
Taking single dose of antibiotic may not cure the condition.
So you consult gynecologist once and get examined.
With her advice you can go for ultrasound
, urine microscopy and culture and sensitivity.
By examination and these investigations, the possible cause for your problem can be identified.
You may need one course of antibiotics to treat urinary tract infection along with antispasmodics.
Ultrasound can identify urinary tract infection and/or pelvic infection
In case of pelvic infection, you may need local and systematic antibiotics.
Keep drinking plenty of water.