The present disclosure is directed to treatment of a migraine headache or other nervous system malady such as seizures and epilepsy by applying electrical stimulation to a subjects oral mucosa. Noninvasive electrodes may be placed against the subjects oral mucosa tissue by inserting a mouthpiece comprising the electrodes into the subjects mouth. One or more electrical pulses may be applied to the electrodes to stimulate the subjects cranial nerves and thereby treat the malady.