Wires and magnetic fields
All wires with a current flowing through them have a circular magnetic field.
This means that if you put a compass anywhere near the wire and a direct current is passed through the wire the compass needle will move. The compass is influenced by the wire.
Move the compass anywhere around the wire and the needle will move.