Not wanting to reinvent the wheel I would suggest that you go to Youtube and watch a few videos on trouble shooting a power tool. Since it was working before you opened it up you may have a broken wire either inside the insulation or at the spade terminal. It should be easy to find with a meter.