Riya and Priya were talking amongst themselves about the rigid, hard and bony structure that is felt as backbone on the back side of the human body. On further discussion they also got to know that backbone protects a soft structure called spinal cord which performs several more functions. Which amongst the following are the functions of spinal cord?