The present disclosure provides a motor configured to receive driving power from a connector including power terminals. The motor comprises a housing, a terminal block disposed inside the housing, and at least one terminal located adjacent to the terminal block. The power terminals are configured to penetrate through the terminal block, and the at least one terminal is configured to be brought into contact with the power terminal according to a movement of the connector when hairpin coils are inserted in the connector, such that the driving power is applied to the hairpin coils via the power terminal.