Hi Danial, loss of libido is when you just dont fancy sex.
ED (erectile dysfunction) is when you either cant get an erection good enough to enter a woman for sex, or get an erection but goes soft as soon as you enter a woman for sex, and that is something you dont want, ever.
Hope this helps.
loss of libido- no feeling for sex, ur a saint who is away from pleasures of the world
ED- u hv desire but canon doesnt point towards the target