My speedometer is not working on my 95 BMW 740i is it the right rear speed sensor?

when my speedometer did not work, I bought the right rear speed sensor and that was not the problem, so I took it off and placed it on the left rear. And believe it or not it worked, same part fits both sides.