The motor of the invention includes the resin sealing member which covers a stator and a circuit board. The stator includes a stator core for winding a driving coil through an insulation member, and a terminal pin secured to the insulation member. The insulation member includes a press fitting portion for pressing and securing a portion of the terminal pin on a side of a second direction, whereas a portion of the terminal pin on a side of a first direction is soldered to the circuit board. A stopper portion is formed on a second direction end of the terminal pin. The stopper portion contacts a surface of the press fitting portion in the second direction to prevent the terminal pin from falling off in the first direction.