Electro magnetic ballast are much larger and heavier, they are older technology and use coils , like a transformer.
Electronic ballasts are lighter and usually smaller, they run much cooler and can get a longer life span out of your bulbs. They use electronics to transform the current. They are also more expensive, and the magnetic ballasts are generally more reliable