It depends what has caused it, but generally a combination of losing weight, eating better, exercising more and seeking counselling will help. Definitely speak to your GP and you can also get Viagra over the counter these days. Good luck with it; I know it can be stressful