It could be a number of things, depending on your age, health, nutrition, etc. For example, diabetes can have an effect on erections, as can many medications. Psychological reasons are also very, very common: it may be that you’re feeling stressed about things unrelated to sex, it may be that you feel “performance anxiety,” etc. Or you could be feeling physically uncomfortable.