While you'sorting it out, you should be able to get your bike working by bridging the red and the blue wires in the connector or cable. Like that, it should work on level 1 pedal assist and normally with the throttle if you have one.
Those types control panels can be either digital or analogue. If you open the controller to see where the wires are joined, it'll say tx and rx where the comms wires are joined if its digital. If it's analogue, there will be different markings. If it's analogue, you can replace it with any other analogue type. Sometimes you can determine the type of control panel from the connector, so show a photo of yours in case it helps.
You can also use this crisis as an opportunity to make your bike better by upgrading the controller to one with an LCD. Cheap one is about £40 and really nice one is £80.
When you change the controller you normally need to change a connector or two, unless you get a new pedal sensor, speed sensor and throttle at the same time, like you can get from Topbikekit. The motor connectors are standard.