Rigged body appears distorted when moving
Seems that, some parts of your mesh are not attached to the bones,
Please try to use the Weight paint mode to add missing part of mesh to the respective bone.

Steps are shown below:




Red means full control, blue means no control, and in between those color, partial controls.