Technically, in physics, there is no such thing as "cold". EVERYTHING in the entire universe has heat. Things we think of as "cold" simply have less heat.
That being said, heat is a measure of the excited state of the electrons in a given object/substance. If the electrons are more excited, the object has more heat. During a chemical process such as burning, electrons get so excited that the original substance is broken down and heat is produced.