Thanks for the question. The problem of erectile dysfunction may be due to may be due to many reasons like stress, anxiety, performance pressure, smoking, alcohol or even surgery to the pelivic area, these are the common causes for erectile dysfunction. The most common treatment would be talking to your boyfriend about the factors of fear and stress causing this problem. By bringing changes in the lifestyle also would help. If all these measures doesn't help it would be better to evaluate further for any physical problem leading to erectile dysfunction.