There are two main types of this disorder  central sleep apnea which occurs when the brain fails to send important signals to the breathing muscles  and obstructive sleep apnea which occurs when air cannot flow through the nose or mouth even though the body is still trying to breathe