Magnetic fields can be created with a current travelling through a wire.

Electromagnetic induction can be caused by magnetic flux movement.