First take a Viagra or Cialis. If it works, it means your ED is psychological.

Second, Idk what you mean by "used" to be porn addict, but you should try cutting out all porn and masturbation for at least a month if you haven't already.

Third, try supplements and and exercise