Which 5 smaller wires?
If it's the hall sensor wires, then you'll have to figure out which ones are 5v (or whatever voltage it uses) and ground first (you can't experimentally determine those while it's connected to battery, as you can damage the controller and motor). Once you know for sure which ones are 5v and ground for the hall sensor wire set on the controlelr, and on the motor, then you can connect those.
Then you can try the six possible combinations of the other three (sensor) wires to see which one makes the motor run forward at correct speed at the lowest battery current.
If all of the stuff came prebuilt from a single manufacturer then it is likely that the wire colors will match between parts of the system, but there is no guarantee of that.
Anything that did not come from a single manufacturer may have any possible combination of colors used, so don't let wire color be your guide to anything (some don't even use black for ground and red for positive all the time, but sometimes they do....

)
If it's the display wires, then if they didn't come as a set (controller and display) it's so unlikely that they could work together it is not usually worth the risk of damaging parts by connecting them anyway.