So, instead of fossil fuels, the magnetic field thats creatd by electrified coils in the guideway walls, and on the track combine to propel the train. Just think of it as playing with magnets. The opposite attract while if you put norh to north or south to south, they will push away from each ther. This is just the basic principle of electromagnetic propulsion
Electric motors use the forces produced by magnetic fields to produce a turning motion. If you put a length of wire in a magnetic field and pass a DC current through it (such as from a battery), the wire will move. This is called the motor effect.
To make a simple DC motor, you need:
two bar magnets
a coil of wire wrapped around something to support it