2002 mazda mellinia

Why does my car jerk and skip while climbing a hill ,but stops when it level back out?

2001 mazda 626

will a computer from a 2001 mazda 626 work in my mazda 626 if the numbers are different

1988 b-2200 mazda

motor dies when i apply the brakes to come to a stop. What could it be?