Frig/freezer not cooling, compressor not coming on but condensor fan is

This frig sat unplugged in the garage for a couple years and when I tried to plug it in everything seems to come on except the compressor. No clicks and the comp is not getting warm. Could it be the capacitor? How do I test it. Could it be the motherboard? How do I test that?