A guitar usually has six strings. You pull a string with your finger. The string moves back and forth very fast. This movement is called vibration.
The string is thin, so its sound is quiet. The guitar has a big hollow body. The sound goes into the body and gets louder. The hole in the middle lets the sound out.
Your other hand presses the strings on the neck. A short string makes a high sound. A long string makes a low sound. This way, one guitar can play many notes.