Due to tension, intermolecular distance between atoms is increased and therefore potential energy of the wire is increased and with the removal of force interatomic distance is reduced and so is the potential energy. This change in potential energy appears as heat in the wire and thereby increases the temperature.