The disclosure is a method of treatment for obesity, in an individual in need thereof comprising positioning stimulatory electrodes in the distal small intestines or ileum, and administering electrical stimulation in trains of pulses or repetitive pulses, where the electrical stimulation is effective, at least in part in, stimulating the vagal afferent and efferent activity, of the distal small intestines or ileum, in the individual. The stimulation of the vagal afferent and efferent activity leads to the regulation of the ileal brake. Specifically, the electrical stimulation is provided in trains of pulses. Also, described is a method of treatment for functional gastrointestinal disease by ileal electrical stimulation. Further this invention provides a method of treatment for an eating disorder comprising administering ileal electrical stimulation effective, at least in part, in stimulating the vagal and sympathetic pathways. The stimulatory electrodes are placed by laparoscopic, endoscopic or surgical means.