The controller will have a set of cables to match, plus the connections for the battery terminals, throttle, pedelec sensor and any other facilities that it has like brake cut-outs,
Here's an example controller illustrated on ebay, and you can see all the connectors etc coming from it.
.
.