I suppose as you've been together for 18 years and you were in your 20's so now late 40's maybe early 50's?.
Can't remeber where it was writ but around 50% of men at that age suffer some degree of ED its quite common. Its pretty devastating to most men that they can't have sex like they once had and don't feel that much of a man anymore!
Yes of course you can do other things to pleasure your lady but most women like a decent PIV experence, and they don't like having to faff around with condoms and the like its just basic and raw the way nature inteneded it to be. Well thats what I've found anyway over time!
That said i think he'd be best off seeing a doctor and urologist to elimate any other practical medical sources of ED then see the best way and dosage to treat. Some men respond better to differnt ED meds and getting the dose right, and do not take on a full stomach or after a greasy meal, bit awkward if your having fun an hour or two after dinner! and the side effects etc.
And what you expect from him, your relationship. After some years of ED a mans intrest can wane and he may not be the man you used to know, couse a womens intrest can wane too after children and with aging etc so you may need to work on that counselling, whatever?
I'm now in my later 60's and of course the ED has been there for some time but i have fun and games with a FWB i know, we both know where we stand of that sometimes can mamage fine most times less the blue pills, but they do give that added confidence which makes for a better time but they do have odd side effected they can make it harder to pop and one other thing a lot of men using condoms have erectile loss if you can get around that, does help.
HTH and best of luck getting it all back on track:)