Which part of the brain is primarily responsible for controlling involuntary activities such as heart rate and breathing?