You need to provide a bit more information like which motor you have and do you see any battery voltage changes on the display when this happens.
Double check all your connections, especially the battery for loose, damage or carbon build up on the copper connectors.
Also... Do you have the brake...