(Answer ASAP)

In which state(s) of matter could a substance have thermal energy?

A) Only liquids and gases


B) Only liquids and solids


C) Only liquids


D) Liquids, solids, and gases