Compressor won't run

I noticed the freezer items melting, unplugged and cleaned up the unit. When I plugged the unit back in, compressor just hums.
How can I determine if the compressor is bad or if I need to replace the start switch or the run capacitor?