Animation wont play correctly when playing

So i am trying to make a surivial type game and each enemy has 2 animations, a walking animation and an attack animation

when the walk animation is playing it dosent move any other body parts and just tilts the torso to the left. whats even more stanger is that when the attack animation is playing it plays like how its supposed to but just not the walking animation.

Ive tried re-rigging and making adjustments in the animation editor but it just cant fix it.

this is what its like when playing:

this is how the walk is ment to look / how it looks in the animator:

for some reason only the attack animation works fine: