which part of the brain primarily regulates muscle functioning and coordinates movement