Electromagnetic lifts, and work Magnetic field doesnt do any work, so when an electromagnet lifts, say a car or something, where is the energy coming from?
 A: A constant magnetic field doesn't do any work on a moving charge. This, however, doesn't mean that a magnetic field can't do work if it is not constant. The field has an energy density of ${1 \over {2\mu}}B^2$ and this energy can be converted into work if the field changes, e.g. by introducing a magnetic material. It's the change in the field strength when the magnetic material is being introduced that allows for such a system to perform mechanical work. In case of electromagnets the necessary energy comes from the electric current that powers the magnet. 
In a quasi-static configuration, i.e. when the magnetic fields change slowly, we can calculate the total energy of the system (i.e. the energy in the fields as well as the energy in the magnetized materials) as a function of the position of the magnetic materials. For linear magnetic materials we can use $B=\mu H$ and then the total energy of the system becomes
$E_{magnetic}={1 \over 2}\int HBdV$
The system will be most stable in the configuration in which this total energy is the smallest, i.e. we can treat this almost like a potential problem. I say almost because we are usually dealing with extended magnetized bodies, i.e. we need to consider both the position and the orientation of the bodies, so it is a little more complicated than in the case of a gravitational or electric potential. 
