2002 Mazda Tribute

2002 Mazda Tribute
Hi. I was having problems with my mazda. It was not working on drive only on reverse and second gear so i had it replaced with a used one and the same problem exists. I’m so frustrated. My Mazda still only runs on reverse and second gear. Any advice?