You need to be looking at your Z min sensor. You need to make sure it is plugged in correctly and in the right place. If the board sees something not right with the z sensor it will not let the z axis move.