Start with the cabinet's surroundings
A fridge that cannot reject heat will run continuously no matter how healthy its refrigeration circuit is. Sealed joinery with no ventilation, a condenser matted with dust and fluff, or a cabinet pushed hard against a wall are the most common and least expensive causes.
Before any part is considered, the condenser needs to be clean and the appliance needs the clearances its manufacturer specifies. In fitted kitchens this is frequently the entire problem.
Then check the seal
A gasket that no longer seals lets warm air in continuously. The compressor never rests, the cabinet ices up and the drain overflows. A simple paper test along the door edge usually identifies it, and hard gaskets are a common finding on older units.
Hinges matter too. A door that has dropped and no longer closes squarely behaves exactly like a failed seal.
Only then the refrigeration circuit
If airflow and sealing are sound, the next checks are refrigerant charge, running pressures, compressor current and defrost behaviour. A low charge points to a leak, which has to be located rather than topped up. A defrost fault can masquerade as a cooling fault because ice on the evaporator blocks airflow.
This order matters because the cheap causes are also the most common. Replacing a thermostat on a fridge with a blocked condenser solves nothing.