What does the brainstem function?

it fuctions by senting nerve mesages up and down the stem its self