I can understand the distress you are through. Yes, pornography and masturbation does tend to damage one's sex life. You must learn or get treated for your problem of masturbation and porn use. Also, at the same time having correct knowledge and facts about normal sex is very important. Proper and healthy intercouse is a subject to learn about.
Next Steps
I would suggest you to have a detailed consultation with a sexologist in this regard. You can ask a detailed query here on practo.
Health Tips
Your problem is completely treatable. With suitable instructions and if required medication, your normal sex life can be completely restored.