The central nervous system controls the majority of the body and mind. This is easily done as it's comprised of the spinal cord and the brain.
If the central nervous system is damaged, it typically causes terrifying results such as paralyzed below the waist or anywhere for that matter.
Therefore, the central nervous system's function is to control the majority of the body as well as the mind.
Hope this helps!