The nervous system is a complex network of cells and tissues that carries messages between the brain and the rest of the body. The nervous system controls all body activities, from breathing and heart rate to movement, thoughts, and emotions.