Having renewed two major components and knowing batteries work on another bike there is conflict or fault elsewhere.
Try disconnecting the throttle, pas and brake sensors.
Reconnect pas only and see if bikes cuts out, if ok connect throttle and repeat again. Finally connect brake sensors.
If all above fail and cut out continues disconnect motor hall sensor wiring only and see if bikes works and cuts out.
A faulty motor hall may be a cause which you can test for using link below.
http://www.ebikes.ca/documents/HallSensorTestingFinal.pdf