Certain motor activities--like walking or breathing--present the interesting property of proceeding either automatically or under voluntary control. In the case of breathing, brainstem structures located in the medulla are in charge of the automatic mode, whereas cortico-subcortical brain networks--including various frontal lobe areas--subtend the voluntary mode. We speculated that the involvement of cortical activity during voluntary breathing could impact both on the "resting state" pattern of cortical-subcortical connectivity, and on the recruitment of executive functions mediated by the frontal lobe. In order to test this prediction we explored a patient suffering from central congenital hypoventilation syndrome (CCHS), a very rare developmental condition secondary to brainstem dysfunction. Typically, CCHS patients demonstrate efficient cortically-controlled breathing while awake, but require mechanically-assisted ventilation during sleep to overcome the inability of brainstem structures to mediate automatic breathing. We used simultaneous EEG-fMRI recordings to compare patterns of brain activity between these two types of ventilation during wakefulness. As compared with spontaneous breathing (SB), mechanical ventilation (MV) restored the default mode network (DMN) associated with self-consciousness, mind-wandering, creativity and introspection in healthy subjects. SB on the other hand resulted in a specific increase of functional connectivity between brainstem and frontal lobe. Behaviorally, the patient was more efficient in cognitive tasks requiring executive control during MV than during SB, in agreement with her subjective reports in everyday life. Taken together our results provide insight into the cognitive and neural costs of spontaneous breathing in one CCHS patient, and suggest that MV during waking periods may free up frontal lobe resources, and make them available for cognitive recruitment. More generally, this study reveals how the active maintenance of cortical control over a continuous motor activity impacts on brain functioning and cognition.