How to rotate/translate a part of body without afecting the rest of it?
You must have activated the Proportional Editing option on the bottom horizontal menu bar. It allows you to influence the closest vertices/edges/faces.