When you add energy to a substance, what two things can occur to the molecules of the substance?