A scientist did a test to compare two substances: substance Q and substance R. At room temperature, both substances are liquid. When the scientist transferred the same amount of energy into both substances, only one substance changed phase while the other did not. Which substance changed phase, and how did it change?