First of all let us think of heat. Heat is caused by the movement of molecules in a substance and is a measure of the total energy in that substance. Temperature on the other hand is a measure of the ability of a system to transfer heat to another system. This means that the higher the temperature of an object the more heat is likely to flow to a cooler object; according to the laws of thermodynamics, heat always flows from a hotter body to a cooler body never the otherway round.
Thus, the heat of an object is the total energy of all the molecular motion inside that object. Temperature is a measure of the average heat or thermal energy of the molecules in a substance.