Is this the cable running to the motor? If so, it may be the hall sensors are buggered if disconnect happened while riding. If the plugs are coming loose, then something is wrong with at least one side of the connection and should be replaced (either the wiring harness side or, more difficult) the motor side. Either way, if you can't do that, an electrician should be able to, once you have the parts.
Bicycles
Welcome to [email protected]
A place to share our love of all things with two wheels and pedals. This is an inclusive, non-judgemental community. All types of cyclists are accepted here; whether you're a commuter, a roadie, a MTB enthusiast, a fixie freak, a crusty xbiking hoarder, in the middle of an epic across-the-world bicycle tour, or any other type of cyclist!
Community Rules
-
No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
-
Be respectful. Everyone should feel welcome here.
-
No porn.
-
No ads / spamming.
-
Ride bikes
Other cycling-related communities
Recently, sometimes the engine rear wheel barely rolls when I roll the bike backwards.
Yeah, sounds like something might be wrong with the motor.
If the problem is in the connector (could be elsewhere as some have suggested) and if it’s like the one in the pic, then it’s likely gone. Possibly corrosion, or a defect, or loosened female side, etc. This is a HiGo connector and they're generally very robust. The male side is likely fine. You could replace the female or both sides by buying an extension of the same HiGo type (number and type of pins), cutting it in the middle, cutting the existing connectors, then splicing the newly cut connector-wire pairs to the respective sides. You’ll have to ensure the pin arrangement is the same as in the original cable using a multimeter. If all of this sounds overwhelming - get in touch with someone who is familiar with wiring and soldering. It’s an hour tops for a person with the right tools and materials. Cutting both connectors and just splicing the wires together is also an option as some have suggested. That might be easier to do if the cable color coding is the same on both sides, but that's far from certain so I'd say the same work for matching the pin arrangement applies.
Thanks!