What happens to energy in an endothermic reaction?

Energy (in the form of heat) is absorbed from the environment during endothermic reactions. Instant cold packs, for example, become cold when the ammonium nitrate and water are mixed. As the chemical reaction takes place, it absorbs heat, which is why the pack feels cold.