Dear Student,
Electric iron works on the principle of heating effect of current while the other works on electromagnetism. The principle of the electric iron is that when current is passed through a coil, the coil gets red hot and transfers the heat to the base plate of the electric iron through conduction.
Regards