The substance giving off heat will lose some of its temperature to the substance receiving the heat because the substance receiving the heat absorbs the thermal energy. The receiving substance's temperature would then increase. Why can't ice transfer coldness into another substance? There is no such thing as coldness.