Frid is not cooling either side

As the days went on the fridg side kept getting warm , but freezer side was good, Moved it out into my garage and both side are now warm, fan is turning

It cycles and makes a humming noise for about 5 seconds, the compressor is very hot to touch, any ideas