the molecules create more heat/energy when they bounce off one another. it's small, but remember that these molecules are "trapped" and cannot escape, so they just keep bouncing around and likely hitting other molecules.
add a steady supply of energy (the heating element) the molecules will continue to bounce off one another, which increases the energy/heat of the molecules.
there's a decent summary at the end of this page here:
http://coolcosmos.ipac.caltech.edu/c...rmal/heat.html
im not a physicist but i work directly with them and have had this explained to me before and ive animated similar concepts. im also likely not explaining this 100% accurately.