You have probably killed the ADC's on the mega...
There is no way to repair this
You may be able to ignore it and use another port.
On the board is T0, T1 and T2
Extruder is on T0
Heated bed it on T1
Nothing on T2 (unless you have second extruder)
If you can find any two that work, you can use them otherwise its time to get a new mega.
see pins.h for the definitions of which pin is used for what