Hi Sivam, Welcome to HealthcareMagic Forum.
You are having Phimosis
where you wont be able to Retract the Foreskin of Penis as a Result of Scarring secondary to Infection. You should get yourself examined by a Urologist
so that he can examine you and if necessary suggest a Procedure called Circumcision
. Kindly restrain yourself from Masturbation
for a few days and give it adequate rest as it may aggravate the Problem.