Heart function is controlled by the brain’s autonomic nervous system (the parasympathetic and sympathetic branches), responding to signals from these branches to speed up or slow down.