Name the three parts of the brain and one function of that part