I'm not sure about Bafang, but many batteries have an internal fuse. It's possible a short occurred when that XT connector broke and took out that fuse. The manual, either printed or online, should give more information.
Unfortunately, I have no first hand information on your bike. Hopefully...