What is the main function of the central nervous system?

providing energy to cells
processing information
exchanging gases
delivering nutrients throughout the body

The main function of the central nervous system is processing and transmitting information throughout the body. This includes receiving sensory input, interpreting it, and coordinating appropriate responses.