After the Z-axis motor replacement, you have to check the level and, if required, relevel the carriage. In theory, during the initialization, the carriage should be levelled, but very often, it isn't if there is a problem with one of the motors. Encoders installed on each motor should show...