The sympathetic nervous system is responsible for the 'fight or flight' response, which prepares the body to confront or flee from potential danger by increasing heart rate and dilating airways. In contrast, the parasympathetic nervous system controls the 'rest and digest' state.