Describe the structure and functions of the parts of the spinal cord.