Quit smoking. Smoking can make ED worse, since it interferes with your circulatory system and is linked to diseases that cause ED. If you're having trouble sustaining an erection, now might be the time to give up the cigarettes for good.
If quitting doesn't seem possible right now, cut back as much as you can. If you can limit your smoking to a few cigarettes a day, that's better than smoking a pack.