thanks for using healthcare magic
First of all, you should not have waited around with so much of discomfort for so long, always attend to your health first.
the exact cause of your symptoms can not be defined with out investigation.
But it seems like you have ureteric or bladder stone
with some urinary tract infection
It is suggested that you get a urine routine examination and a sonogram of abdomen and KUB area at the earliest.
Hope i have answered your question.