A conductor kept in a magnetic field experiences a force when current passes through it. This is the principle operation of:
Electric Speaker
Electric Motor
Electric motors and speakers work on the principle that a current carrying conductor in a magnetic field experiences a force. This force in the case of a motor turns the rotor, while in a speaker moves the diaphragm to produce sound.
A compass does not require current to operate, as the needle itself is a permanent magnet and in a magnetic field, it experiences a force.
A solenoid produces a magnetic field when current is passed through it.