Thanks for your query.Based on the facts that you have posted it appears that you have Acute Ballanitis with UTI. Get your routine urine test done.
Take antibiotic like Augmentin
along with anti inflammatory medication like Diclofenac
twice daily foe a week.
Apply some topical antibiotic
ointment over glans penis
after cleaning it with warm water.
Get prescription of these drugs from your family Doctor
If you are not circumcised cover the glans with foreskin to protect it from friction of inner wares.