When an electric current passes through a wire, it heats (current heating effect) and creates a magnetic field around it ( magnetic effect of current).