The invention relates to a lock body having an electric motor. The electric motor is arranged to guide the forming and removing of a force transmission connection between the parts to be arranged in the force transmission connection to transfer force or to impede force transfer. If formation of the force transmission connection is not achieved, the construction of the invention is such that the use of one spring enables the pushing of the piston connected to the electric motor both outwards and inwards.