What carries messages to the brain?

Mostly nerves, although the blood can carry "messages" such as hormones.