Ps move controller

I have a ps move controller that will not operate unless its plugged into the ps4 usb port.
I assumed a dead battery as it hadnt been charged in a while. I replaced the battery but still the controller only operates while its plugged in.
Would replacing the main board fix this? And if so where is the best place to source one?