Thanks for query.
It seems that you might have some urinary infection.
It is also possible to have stones in the kidney
as you colicky type of pain and passing blood in urine.
Go for routine urine check up.
of urinary tract
After reports go for the treatment accordingly.
Take plenty of water.
Ok and bye.