Clouds form when water vapor condenses in the air. This releases heat, which increases the updraft temperature and the kinetic energy of air movement. In supercell thunderstorms, updrafts are strong and may create a vortex of air that may form a tornado.
Most scientists consider this to be a simplified and incomplete explanation. The finer details of tornado formation and dissipation are still unknown.