It travels between two points,much like the electricity in your home going from the light switch to the light.
Lightning can flow between clouds or from clouds to the ground.Lightning heats the air,making it expand.The air then quickly contracts again as it cool.This movement of air makes the sound of thunder.