From history it seems that you might be having infection called Bellano-prostitis.
Due to not having proper retraction of fore skin, there might be having collection of smegma
under fore skin giving rise to infection.
It is advisable to go for circumcision
Meanwhile go for one antibiotic medicine course to treat present infection.
Make a habit to clean glans
by averting fore skin while taking bath.
Ok and take care.