3 parts of brain are:
1) Forebrain 2) Midbrain 3) Hindbrain
The functions are as follows :
1) Forebrain consists of cerebrum which coordinates all voluntary actions such as thoughts, sensations, learning, sight , smell etc.
2) Midbrain controls of reflex movements of the head, neck and eye which inculdes change in pupil size.
3) Hindbrain consists of- Pons, Cerebellum and Medulla.