We investigated the contribution of electrocortical stimulation ( ECS ) , induced high gamma electrocorticography ( hgECoG ) and functional magnetic resonance imaging ( fMRI ) for the localization of somatosensory and language cortex .