Somatic innervation to the pelvic organs is
For most of its pelvic course, the femoral nerve (L2, L3, L4) travels within the substance of the psoas muscle and then exits its lateral side to pass under the inguinal ligament. It supplies sensation to the anterior thigh and motor innervation to the extensors of the knee.
Greater splanchnic nerve
Lesser splanchnic nerve
Pudendal nerve
Ilioinguinal nerve
Abdomen and pelvis