<p>A motor (1) in which a driving system equipped with a stator (10) and a rotor (14) and a control system which controls the driving system and is equipped with circuit boards (21) and (22) are housed in a case (2). First conductive pins (25) which allow the electric current for supplying electric power to the control system to flow and second conductive pins (26) which allow the electric currents outputted to each phase of a coil from the control system to flow are provided so as to support the circuits boards (21) and (22). Also disclosed is a process for producing the motor, in which the stator of the motor, metallic cylindrical bodies, and buried members are encased in resin by injecting the molten resin into a cavity after they are placed into the fixed in a cavity defined by a first mold (101) and a second mold (102) which are joined together at parting faces (104) and a third metallic mold (103) which is inserted into the central part of the first and second molds (101) and (102).</p>