Which Bafang motor are we talking about? The initial assumption will be its one of the mid drives but Bafang has hub motors with throttles, too.
Has anything changed between the time it worked normally to the present? Did you use the programming cable to change any settings?
If 'no' I would swap out the throttle for a new one to see if that fixes it. They are cheap.
If you have a programming cable and some sort of software to get at the motor's internal settings, I would post pics of your settings here.