The interaction between electricity and magnetism is called Electromagnetism.
Michael Faraday discovered that magnetism can produce electricity.
A coil or wire with an electric field in it is called solenoid.
A coil of wire has a soft iron core and that acts as a magnet when an electric current flows in coil is called electromagnet
Hans Oestered discovered that electricity can produce magnetism