When a cooler object touches a warmer object , thermal conduction occurs.
When the glacier moves into warmer areas the ice melts and sediments are deposited.
Glaciers melt via thermal conduction.
Glaciers melt via

vaporization
thermal conduction
Water expanding
colder temperatures
mountain sources
internal combustion
decreased wind
Physical weathering