Consider the following thought experiment: imagine a flask of warm liquid, sitting in an air-conditioned room. Beneath it, you can see an unlit bunsen burner. Inside it, you can see a stirrer which has been switched off. The liquid is warmer than the surrounding air, so it must have been heated, right? Wrong. The liquid is at an elevated temperature, indicating increased internal energy. But there is no way to tell whether this energy came from the bunsen burner or the stirrer. If it came from the bunsen burner, then it entered the liquid as heat. If it came from the stirrer, it entered the liquid as work. Once the energy is inside the liquid, there is no way to tell how it got there.
Therein lies the fundamental definition of heat: heat is not a property of matter, and it is not a type of energy. Heat is a type of energy transfer, just like work. You can perform work on an object, and it can experience an increase in internal or kinetic energy as a result, but it can't "contain" any work. Similarly, you can heat an object, but it can't "contain" any heat.