Some of the biggest problems with repairing a lot of modern equipment is
A) It is either not designed to be repaired, ie throwaway or you just replace assemblies like a motor or PCB.
B) With the widespread use of microcontrollers at the heart of these systems then even with a circuit diagram fault finding can be difficult because you do not have access to the firmware or any logic diagrams, all you can do is check inputs and outputs but even then you require more than a simple multimeter.
The motor assembly looks to be self contained, made by Guandong Welling motor co ltd so this will be a throwaway assembly. You can see the controller for commutation is contained within the motor so that external PCB is a power supply and controller. The motor has a 340 volt Dc supply that will be switched within the motor to provide the three supplies to the windings to create the rotating magnetic field, the Yellow looks like a speed control input from 0 to 6 volts with the white being a 15 volt supply for the actual electronics. What that blue wire marked as FG does is debatable, it could be a signal back to the control board indicating some motor parameter or a fault signal to tell the power supply to shut down but here the circuit diagram would help.
At the moment i think the motor is ok,
I do not think you can say that, you need to confirm all the voltages are present including that FG wire and if they are then that could confirm the opposite, ie the motor or control electronics within have failed. To prove the motor is ok then you want one of those voltages or signals to be missing and then look at that external pcb.
Overall this comes down to cost of a new dehumidifier against a new motor / PCB and that assumes the rest of the machine is still good and has some years left in it. This could become one of those situations where you throw money at it but still it gets chucked out, welcome to the throwaway world.
We have an old ebac, I mean old and it is a square wooden box on wheels with a control we have never changed and it just keeps on working twenty plus years later, no fancy motor or electronics. It is really just the basic motor / compressor from a refrigeration unit with a capilary type thermostat which really shows that mass produced complexity is not progress and the old adage of KISS really is true.