motor is now working properly..its doing break dance..
If it is
now working properly, then all is well
If it is
not working properly but doing 'break dance', the most likely reason is a break/poor solder joint in one of its three wires. Check continuity. At least try pulling/pushing one wire at a time to locate.
Often dry solder in one of the bullet connectors...
Best of luck.