Under what circumstances did the hub stop working, one needs to carry out fault finding first t come to a decision. Could be also be battery, PAS or controller causing an issue.
I remember a year or two ago someone berating a good ebike brand because of the crappy China components used after...