It seems that you might have some infection in your Genito-Urinary tract infection
go for urine check up.
Consult Gynaec and get examined.
You may require one antibiotic medicine course to solve your problem.
Meanwhile take antispasmodic tablet like Dicycomie as and when required.
Take plenty of water.
Ok and take care.