Congrats on wanting to make sure your body is healthy. To get an erection, lots of things need to work together:
- Good blood flow to your penis
- Good nerve signaling to your penis
- Normal hormone balance
Also, stress (physical or emotional), mood, and use of substances such as alcohol or marijuana can affect your ability to get an erection.
If you are otherwise healthy, you can try masturbating by yourself and see if you can get an erection. If you are still unable to get an erection or if masturbation is not right for you (for religious, cultural, or other reasons) you should talk to your healthcare provider. They can let you know if everything is normal or not, and what to do next.