

Electrons and protons have permanently an electric field. To produce a macroscopic electric field it is enough to separate charged particles. Electrons, protons and other particles too have magnetic dipole moments and parallel to this moment an intrinsic spin. In a straight current carrying wire we have some side effects if one uses a magnet (compass needle), it induces a magnetic field due to the alignment of the electrons and more due to Lorentz force and folowing self-inductance. This is the reason why electrons in a circuit can act like magnets.
