The strings vibrate. There are little magnets under the strings called ‘pickups’ that pickup the vibrations and when you connect a cable, those sounds are transferred through that cable into an amplifier and bam. You got sound. That’s the easiest way to explain.
Source: I’ve played for 15 years. Been a professional for a while now
Latest Answers