A motor includes a base, a bearing sleeve, a stator, a rotating member, a thrust bearing, and a hub. The bearing sleeve is arranged with the base and has an opening end and a sealing end opposite to each other. The stator connects with the base or the bearing sleeve. The rotating member is arranged inside the bearing sleeve and includes a shaft and a limiting portion adjacent to the sealing end. A first end of the shaft connects with the limiting portion, and a second end of the shaft has a coupling portion adjacent to the opening end. The thrust bearing is arranged between the shaft and an inner surface of the bearing sleeve, so that the limiting portion is between the thrust bearing and the sealing end. The hub connects with the coupling portion of the shaft and has a permanent magnet corresponding to the stator.