If the compressor runs for a few seconds then cuts off it could be one of three things, A, the start capacitor if it has one a tubular thing with a wire coming from one end which is easily replaced, the value is marked on its side in uf that would be the first thing to change. Failing that B...