It seems like you have developed urinary tract infection, more so a cystitis which is causing you the problems that you are experiencing. You need to get urine culture sensitivity,urine routine microscopy, cbc, kft and an usg abdomen, pelvis, postvoid residual urine, prostate. You need to start antibiotics, anti-inflammatory medication as well.
Next Steps
consult an urologist for proper evaluation and treatment