Vertices WON'T move along axis
As commented by @RobertGützkow, you have Snapping enabled:



That means your vertices will be snapped to the closest face while moving them. You can disable it altogether or hold CTRL while moving.