This electric iron works on the principle of the heating effect of electrical current.
The metal gets heated when the present flows thereon.
This is often because, when the electrical current flows through the metal surface, all the electrons present within the metal energize and obtain vibrated.