Condenser Fan Not Working

Fridge temps started rising with heat wave we have in NY. I opened up back and noticed condenser fan is not working. I unplugged fridge and put on a small fan near condenser assy. Compressor started to work and I figured unit would need fan only but as temps rose following day compressor went dead. I unplugged and reconnected and unit started to work again. Does anyone know what may be causing this to happen?

Anyone know what J connectors on motherboard I can check to see if it’s sending to the the condenser fan?