Ok if this is happening it can be either the compressor or to be honest more then likely the control thermostat unit inside the fridge.
If you are able to run the appliance and when it stops remove the plastic cover on the side of the compressor so you will need to remove the appliance for this part.
Once that cover is off you should see a black wire. This is the compressor live feed so if you have a voltage checker see if you have 240v there. If you do then its either the compressor or the compressor relay. You can try a relay to see if this works if not then you need to get a fridge engineer in for the compressor as this isn't a diy fix.
But if there isn't 240v then its going to be the thermostat control board in the fridge. To be honest from what you say its usually the thermostat control board that causes this as there relays on there which can stick so unplugging and plugging them back in resets the board and gets it working again.
Check it out if you can and see what you find.