Stepper motor moving only to one side after reset
Assuming that your M119 command has been executed for non-depressed endstop switches, it could be concluded tht the firmware is incorrectly configured.

If you execute the M119 G-code command and get TRIGGERED status values for endstops, even when the nozzle head is not pressing the endstop switches, then you have incorrectly configured the endstops in the Marlin configuration.h file.
The most common setup is to have the COM go to ground and NC to Signal, this requires the following values to be false, otherwise you need to use true.
#define X_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.

When an endstop is reported to be triggered while the switch is not depressed, the logic needs to be reversed. Marlin firmware will only allow movement to go away from the endstop when it is triggered, never against a triggered endstop (as this might damage the printer).