Answer: Electric motor and loudspeaker
Both work on the magnetic effect of current: a current-carrying coil placed in a magnetic field experiences a force. The electric motor uses this force to rotate, and the loudspeaker uses it to move the cone and produce sound. (A microphone and a generator work on electromagnetic induction.)