Thanks for your query.Based on the facts that you have posted it appears that you have developed infection of glans
and foreskin ( Ballano Posthatitis) This is very common at this age
If you have not tested your blood sugar recently get it checked to rule out Diabetes
Consult qualified Urologist
for clinical examination to confirm the diagnosis and advice. You may need to get circumcised under local anaesthesia.
In the mean while take some antibiotics like Doxycycline to combat infection.