The attack animation is being overridden by the other animations you have playing.
You may need to create variables to know what state the player is in or check to see if the "Attack" animation is playing before returning to the Idle or Move animation.
Something like this could work as well.
Condition:
Player > Platform is not moving
Player > Player Animation "Attack" is not playing
Action:
Player > Player set Animation to "Idle"