You have plugged you endstops in wrong. they are now shorting 5v to grd when closed.
This has killed the voltage regulator on the mega.
This has killed the voltage regulator on the mega.