What produces the magnetic force of an electromagnet?

O magnetic fields passing through the device

O static charged particles on the wire

O movement of charged particles through the wire

O positive and negative charges repelling each other