Very possible that the Z port is dead or almost dead from what all you have posted. Luckily a new ramps is pretty cheap. Being able to swap that out would be a good test. If not, then a spare is good to have anyway. Good luck. Electronics can be frustrating at times.