the cerebal cortex is responsible for consciousness, memory, intelligence and language
the medulla controls unconscious behaviour like breathing
the cerebal cortex and medulla are at the front of the brain
the cerebellum is at the back of the brain and are reponsible for muscle coordination