my animator is going strange

I imported raw Mocap data of Mecanim for my character of animation. However, when I simulate my animation controller, my animator gets wrong. First photo is how my animator is wrong. Second photo is my animation controller.

First, make sure you set your character asset (in Project View) to ‘Humanoid’ and configure it in the ‘Rig’ tab so Mecanim knows how to handle the bones.

Second, raw Mocap data is always messy. You will want to import it into a program such as Maya, Cinema 4D or Blender and “clean” it, that means: removing unwanted noise in rotation / translation values in your characters bone structure, which is naturally left behind by mocap recordings.

Other than that I recommend you to watch this video, it really helped me out alot when I first started with Mecanim.