For example, if you burn your finger with a flame, the sensation of pain alerts the brain of this bad situation. In turn, the brain orders your hand to move away from the flame.