Answer:
Lightning heats up the air and the heated expanding air causes the thunder sound. You can estimate how far away the lightening was by counting seconds after the flash, 6 seconds to a mile away.
thunder is the sound of lightning after the lightning strike occurs