The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
NO is produced by the enzyme NO synthase (NOS).  NOS plays many roles, ranging from homeostasis to immune system regulation. To date, 3 subtypes have been identified: nNOS, iNOS, and eNOS, which are produced by the genes NOS1, NOS2, and NOS3, respectively. This nomenclature is derived from the sources of the original isolates: neuronal tissue (nNOS), immunoactivated macrophage cell lines (iNOS), and vascular endothelium (eNOS). The subtypes are not, however, limited to the tissues from which they were first isolated.
For best results, men with ED take these pills about an hour or two before having sex. The drugs require normal nerve function to the penis. PDE5 inhibitors improve on normal erectile responses helping blood flow into the penis. Use these drugs as directed. About 7 out of 10 men do well and have better erections. Response rates are lower for Diabetics and cancer patients.