Magnetic Motors - The end of gasoline?

Aren't trains and roller coasters and things that use magnets on rails powered by electro-magnets? Electricity controlling the magnets.

I know nothing about all this physics stuff, I failed that class in High School, but I do find it interesting and I thank you all for your insight, good or bad.