An invention is provided wherein the bearings of a molded motor do not become electro-eroded. An inner rotor type, brushless DC motor 10 is provided having a stator 22 which has a stator core 12 wound with a coil 16, a housing 26 formed by covering the outside surfaces of the motor 10 with an unsaturated polyester, molding resin having electrical insulating properties, and an earth electrode 40 made of metal, installed to go through a metal bracket 38 and the housing 26 to reach the stator core 12, such that electric current flows from the stator core 12 and the bracket 38 to the exterior, preventing electro-erosion and resulting deterioration of bearings 30, 32.