Depends on whats wrong, first Bench test it and see how it behaves to help you get an idea of what its not doing, no output/over charging/poor output/ bad bearings etc. then Dissasemble and test each part to locate the trouble, install new parts, bench test to be sure it works then reinstall on vehical AFTER charging and testing the battery