6-pin connector: 3 large pins are the phase wires, 3 small pins are connected to the internal speed sensor. Leave the speed sensor unplugged for now.
Follow the pedal sensor cable from the bottom bracket to the controller box. It has 3-pin female connector. On the controller side, the corresponding connector looks like this:
Connect the pedal sensor.
The pedal sensor has a red LED on it. If you turn the crank, the LED should flash.
Switch on the bike, check that pedelec function is working.
Let me know the result.