It doesn’t happen all at once.
There may be a time or two when you have some trouble getting an erection. After a while you notice that it isn’t as hard as it once was. Then you actually lose your erection while having sex.
The more bad experiences you have, the more you worry. And the more you worry, the worse the problems get. Before you know it, erectile dysfunction has become a part of your life.