Motor cortex stimulation to treat centrally mediated facial pain. Magnetic resonance imaging (MRI) delineates the location of an electrode with four contacts placed across the target—the face area of the motor strip, as defined by a functional MRI scan.