Of all the types of sexual acting out, compulsive masturbation, with or without with masturbation; Sexual dysfunction, such as erectile dysfunction or delayed. Sep 22, - Erectile dysfunction (ED) means you can't get or keep an erection that's firm enough to have sex. But you may still be able to masturbate. These conditions make it tough to get an erection in any circumstance, including masturbation. For some, ED is related to performance anxiety, relationship problems, or stress.