Hey there! To play a model's animation, you have to store the animation on your model as an Animation Resource and then pass that into the .playAnimation method.
let animScene = try await Entity(named: "anim", in: realityKitContentBundle)
guard let animModel = animScene.findEntity(named: "anim") else { return }
guard let animResource = animModel.availableAnimations.first else { return }
let anim = try AnimationResource.generate(with: animResource.repeat().definition)
animModel.playAnimation(anim)
Make note, you can only play the first available animation on a .usdz file at the moment. If you want to play multiple animations, you have to either load in separate .usdz files that have the animations you want to store as Animation Resources, or create Animation Clips as shown in the WWDC 21 video "Dive into Reality Kit 2"