Method for electrically connecting a wire element of a stator with a carrier element, wherein - the wire element forms in parts at least one electromagnetic coil which creates an electromagnetic field within the stator when the at least one electromagnetic coil is supplied with an electric current; - the carrier element comprises at least one electric component which is designed to supply the at least one electromagnetic coil with the electric current when an electrical contact is established between the at least one electric component and the wire element; - the carrier element comprises at least one planar surface and at least one connection hole through the at least one planar surface; characterized in that - the wire element and the stator are at least partially covered by an overmolding such that the overmolding forms at least one planar surface; - at least one cavity is drilled through the at least one planar surface of the overmolding and through the wire element of the stator such that the wire element is at least partially disrupted in at least one predetermined section of the wire element; - the carrier element is positioned on the stator such that the at least one planar surface of the carrier element touches the at least one planar surface formed by the overmolding and such that each of the at least one cavity aligns with one of the at least one connection hole of the carrier element and forms together with the corresponding connection hole one single cavity duct; - each cavity duct is at least partially filled with an electrically conductive material; such that in sum the electrical contact is established between the at least one electric component and the wire element in the at least one predetermined section of the wire element. - the wire element forms in parts at least one electromagnetic coil which creates an electromagnetic field within the stator when the at least one electromagnetic coil is supplied with an electric current; - the carrier element comprises at least one electric component which is designed to supply the at least one electromagnetic coil with the electric current when an electrical contact is established between the at least one electric component and the wire element; - the carrier element comprises at least one planar surface and at least one connection hole through the at least one planar surface; characterized in that - the wire element and the stator are at least partially covered by an overmolding such that the overmolding forms at least one planar surface; - at least one cavity is drilled through the at least one planar surface of the overmolding and through the wire element of the stator such that the wire element is at least partially disrupted in at least one predetermined section of the wire element; - the carrier element is positioned on the stator such that the at least one planar surface of the carrier element touches the at least one planar surface formed by the overmolding and such that each of the at least one cavity aligns with one of the at least one connection hole of the carrier element and forms together with the corresponding connection hole one single cavity duct; - each cavity duct is at least partially filled with an electrically conductive material;