From your answer, I can't tell if it is a "yes" to Internet porn. We hve seen so many men with this problem, and the "experts" don't have a clue. They don't understand neurobiology of erections, or how Internet porn can alter the brain. So, it's porn, not masturbation that can do this to men. However, if porn is the cause, you have changed your brain - then stopping masturbation is the quicker path to recovery. Stopping porn is a must.
You need to learn about this condition and about others wwho have it, and have healed.
Here's the thread you should look at for porn-induced ED. If you control find - "palpateit", you will see my posts. The first 2 posts have links to presentations and articles about porn-induced ED.