Normally erectile dysfunction
in young people is generally psychological but smoking
,alcohol and substance abuses like cocaine,heroine marijuana takes it's toll on sexual performance of a person very heavily.
I advise you to quit cannabis,smoking and alcohol completely and start doing regular exercises.
Soon your problem of ED shall be cured.
Your ED is not because of any infection.