I don't know the colours of the wires, but here are the pin connections for the wiring harness:
The mechanical brake switches connect to pins 6 and 9 of the main connector
(the +5V is only required for Hall sensor type brake switches)The throttle Hall sensor connects to pins 5, 9 and 10 and the LED battery gauge supply can be taken from pin 3.
If you don't have the matching control harness connector, and end up having to cut the 10 pin motor harness connector off, make sure you leave a short piece of the cable attached to the connector so that you can trace the pins
(and their relevant functions) to the individual wire colours.
Alan