Thanks for asking. Pornography and masturbation can be very addictive. If in habit of frequent masturbation or excessive watching of pornography, it becomes difficult to control or stop it. It would require an intervention from an expert in deal with the withdrawal symptoms of it. What you are experiencing now are the withdrawal symptoms.
Next Steps
You must consult with a sexologist. You can ask a detailed query here on practo or visit one nearby you.
Health Tips
With proper treatment and instructions, it can be completely controlled.