it could be the compressor (expensive!) but before you call the repair service, try these simple repairs. the problem may just be a bad overload or compressor relay.
When your refrigerator suddenly stops cooling, that is a main cause for alarm. Not only do you stand a chance to lose a lot of frozen and refrigerator food that you have been.