Temperature indicates thermal condition and governs the direction of spontaneous heat transfer, while heat is energy transferred because of a temperature difference. They use different units: temperature may be in kelvin or degrees Celsius, and transferred energy in joules.
What is heat? Energy transferred because of a temperature difference.
Can equal-temperature objects have different internal energies? Yes, because mass, material and state matter.
Heating can alter dimensions because average particle separations may change, but particles themselves should not be pictured as simply swelling. Solids, liquids and gases respond differently and some materials have exceptional ranges of behaviour.
What is heat? Energy transferred because of a temperature difference.
Can equal-temperature objects have different internal energies? Yes, because mass, material and state matter.