The thalamus serves as a switching center from the spinal cord to the regions of the cerebral cortex.