The difference in electrical charge between the bottom of a thundercloud and the ground may be more than 305 volts per foot (1,000 V/m), so a lightning spark releasing that potential has a huge amount of energy. Some of this heats the air through which the lightning flashes and makes the air explode. The sudden expansion of air, followed by its rush back into the partial vacuum it has created, sends shock waves in all directions. It is those shock waves the sound of the explosion that we hear as THUNDER!
You can make a similar explosion by popping a balloon or by flicking a
PAPER BANGER: