I would start by resetting the Ender 3 to factory settings.


M502 ;Restore Firmware Defaults settings.
M500 ;Save settings to EEProm

Then I would Check all end-stop switches with a M119 ;End-stop States normal state an when switch is activated.