Do you have a Z home switch?
Do you have Safe Z enabled and set correctly?
If you have a home switch, and are using safe Z, make sure Safe Z is set to use Machine coordinates, and make sure the value is correct.
If you're talking about the Goto Zero, then that is the default Mach3 goto zero function.