Does flipping the endstop logic make any difference? If it's signalling as closed it might be stopping the axis movement
Try #define Z_MIN_ENDSTOP_INVERTING false
There's a long process here First use calibration
Do you have a z-Probe?
Also
Initially try these values for Accel and Jerk if your suffering from filament ringing on corners.
#define DEFAULT_ACCELERATION 800
#define DEFAULT_XJERK 8.0
#define DEFAULT_YJERK 8.0
Try #define Z_MIN_ENDSTOP_INVERTING false
There's a long process here First use calibration
Do you have a z-Probe?
Also
Initially try these values for Accel and Jerk if your suffering from filament ringing on corners.
#define DEFAULT_ACCELERATION 800
#define DEFAULT_XJERK 8.0
#define DEFAULT_YJERK 8.0