Thanks for your query.Based on the facts that you have posted it appears that you have developed severe
infection of the Glans
of the Penis( Ballanitis).
Take some antibiotics like Doxycycline along with some anti inflammatory medicine Diclofenac
twice daily.Get the prescription of these drugs from your family Physician.
Observe proper personal hygiene by cleaning the glans with warm water.
Refrain from any sexual activity till it heals up completely.