I normally know which wire is which without a wiring diagram, though I haven't see Ebco wires before, so I'm going to have to guess.
Before I guess, I have to say that your bike has the TranzX electrical system. Some of them use CANbus communications between the modules in which case you might be stuffed, but the cheaper ones and older ones didn't. I found mention of "new for 2018 CANbus....". How old is your bike?
Another thing is that there are two types of control panel that look more or less the same. Some are digital and some are analogue. They have similar wiring, but the wires have different functions.
The control panels have several separate functions:
1. They all switch the motor controller on and off. They do that by connecting a positive wire that comes from the battery to another one that goes to the controller. You can normally get some basic function (power level 1 only plus throttle) by connecting those two wires manually. On most panels they're red from the battery and blue to the controller. If you have a battery switch you can leave those wires connected and use the battery switch as your main switch.
2. They set the power level. Analogue ones have a single wire (normally green) with a voltage that is stepped from 1v for level 1 up to 3v for level 3 if you have 3 power levels. A walk assist switch on the panel gives 4v if you have one. Digital panels have two wires (often white and yellow, but can be others) that communicate digital information with the controller. The two wires are Rx and Tx. Whatever you set on the panel is sent to the controller via thos wires.
3. Lights. Not on all panels but if the switch is present, the analogue panel has an extra wire (often white or yellow) to carry the voltage for the lights. Digital panels send an instruction via the Tx and Rx wires.
Additionally, there is a ground wire (normally black) so that the panel can be powered with the wire from the battery.
If that doesn't make any sense, show a library picture of the panel you had and tell us what wires you have.
Don't connect any wires unless you're sure of what their function is. If unsure, there are ways to find out, but they involve a bit of work. If you're very lucky, you have red, blue green and black, in which case it's fairly safe to connect the blue and red for testing.
Does your bike have a throttle?