Several of those components look as though they have overheated so it appears you have found why the motor is not working consistently. So you either need to send the board for testing & repair or replace it with a new one. Hopefully there is not another problem that has caused the pcb to fail.