The diaphragm is controlled by a special set of nerves called the phrenic nerves. The medulla tells the diaphragm when to contract by sending messages through the phrenic nerves. Because the diaphragm is so important for breathing, the phrenic nerves are very well protected in the body. They are at the very top of the spinal cord, near the neck.