This, in turn, allows blood to flow to the tissue in the penis. Nerve signals, sent from the brain to the penis, stimulate muscles to relax. When men become sexually aroused, hormones, muscles, nerves, and blood vessels all work with one another to create an erection. Treatment can depend on the underlying cause. Issues with getting or maintaining an erection can result from both physical and psychological causes.