When ice melts in a drink, the ice absorbs heat from the surrounding liquid (the iced tea) as it undergoes a phase change from solid to liquid. This process is endothermic, meaning that the ice requires energy in the form of heat to change its state.
As the ice absorbs heat, the molecules in the ice, which were previously arranged in a solid structure, gain energy and begin to move more freely. This increase in energy allows the ice's solid structure to break down, and the particles transition to the liquid state, becoming water.
In summary, the particles of the ice gained energy from the iced tea, resulting in their movement increasing and breaking the bonds that held them in a solid state, leading to melting.