The animation doesn't play!

Fix that FIRST.

Anything with Animations / Animators / Mechanic:

Always start with the Animator state machine and prove it works in isolation, no code at all: