More information is needed.
Scooter brand name and model. A photo of the scooter.
Model of controller. Photos of the controller any printing or labels.
model of motor. Photos of motor any printing or labels.
The three heavier gauge wires on scooter and motor are your phase wires connect to matching color wires. The 5 thin wires from the scooter may be for the hall sensors. The three thin wires from the motor I don't know.
Later floyd