What is the origin of internal K.E. ? How does it affect a substance?

The random motion of molecules is the source of internal K.E. It affects temperature of the substance. Increase in internal K.E. increases temperature of the substance.