What do I do for better sex drive and longer erections?

Need more info. The cause of low sexual desire and how easily a man can get an erection are variable. A good evaluation by a physician would help. The doctor may do lab tests to look for low testosterone (known cause of low sexual desire) and diabetes (risk for vascular and nerve dysfunction---which can impair erections). One's mental health is also a factor and needs attn.