There is a relationship between electical and magnetic forces. Each force can produce the other. Electric generators use magnetic fields to create current flow. Current flow in a coil produces a magnetic field.
Practicle example: A transformer is comprised of two coils usually with an iron core. Alternating current or pulsating direct current induces current in the second coil. The ratio of wire turns between the wire coils will allow voltage to increase or decrease on the opposite side of the electric power source. There is no direct connection between the source coil and the output coil. Electric power is induced in the second coil by the magnetic field created by a pulsating direct current or alternating current flow in the first coil.