1st pic shows the 4 wires from remote that need to go to the fan: brown, red, blue, green/yellow
2nd pic shows the 3 wires from the fan: brown, blue, green/yellow
Whats on the end of the wires on the motor in pic 2?
My guess is a pair of switches on strings or chains. Is there a compatible connector in that area?