The nerves also carry sensations, such as pain, from different parts of the body to the brain.