"Rock & Roll will never die,” the saying goes, and you might also say rock & roll was born thanks to electromagnetic induction. An electric guitar sounds different than an acoustic guitar because it produces sound through the combined action of electricity and magnetism. The vibrations of the strings are converted into an electric signal via a magnetic component called the pickup, and this signal is then sent to an amplifier and speaker.
Take a look at the guitar pickup illustrated here.