New Mountain Bike Chain Wheel problem ?

Japan S asked: I recently replaced my original pedal chain wheel with one from another mountain bike. The new one works fine with speed & strenght. However when I change gear using the handlebar selector the chain won’t jump to the selected gear
but positions itself between two tooth sets on the rear tire
or it jumps [...]