Thanks for query,
You might have kidney
stones or acute infections in urinary system
Go for ultra sound
and rule out possibility of stones.
Try to urinate in toilet by opening tap for full flow of water,reflexly you get urine pass.
Consult uro surgeon,catheterization may be required.
Ok and bye.