The defrost timer is an electro-mechanical device that controls the intervals between automatic defrost cycles in the refrigerator. The defrost timer motor runs and moves the control components in the device. When the control contacts in the defrost timer advance into the defrost cycle, the compressor stops and the defrost heater turns on for a specified period of time to melt frost off of the evaporator fins. This promotes more efficient exchange of heat across the evaporator. When the specified period of defrost ends, the defrost timer contacts switch back to allow normal cooling operation in the refrigerator.
You'll need to replace the defrost timer if it doesn't advance when activated.
Faulty contacts in the timer can also cause the defrost heater to either not energize at all or constantly energize. In that instance, replace the defrost timer.