Ok so since you can hear the air conditioner running but the motor on top is not spinning.
(Note: That tells us the sound your hearing is the compressor running, that’s good.)
Immediately turn off the power to the machine before the compressor overheats from running with no condenser motor to remove the heat.
Now remove the electrical panel from the ac unit itself.
(Note: If you see a swollen capacitor, that could be your answer so replace it and re-test the air conditioning. Also, if there are any burnt wires inside electrical panel or leading towards the condenser motor itself, replace them and re-test the system. If the capacitor and the wires all look ok, then continue on.)
Your next move is to test the capacitor.
(Note: To test a capacitor, set your volt meter to MFD. Remove all the wires from the capacitor, but don’t forget where each wire went. Read the capacitor to determine its UF rating. If it’s a 2 terminal capacitor you’re looking for a 5uf or a 7.5 uf and that is your rating. If it’s a 3 terminal capacitor then you’re looking for something more like 40uf + 5uf, that’s a 40uf and a 5uf capacitor. The 40uf is between the C and H terminals and the 5uf is between the C and F terminals. If you find that the capacitor is testing below 10% of its rating then it’s bad and needs replaced.)