This happens due to many reasons out of which the major one is a dependency on visual (video and images) content during masturbation. Through guidance by an expert sexologist, you can overcome this problem.