this is happening because of a thing called "Apply Root Motion" in the animator component attached to the animated character, untick or uncheck "Apply Root Motion" and it will be fine