Hi,
Your fridge might have a battery packed attached to it. This would be one thing that could cause your fridge lights to still function even without being plugged into an outlet. Thank you.
In most cases the thermostat is not operating as it should. First see if the probe is still in its clip on the fins of the evaporator ( the thing in the back ) if it is still in position the thermostat is most likely bad.