Crew was excavating a pipe out of a trench w/a loader. Employee A was on the loader being directed by Employee B on the ground. Employee B directed Employee A to pull forward when they did the pipe wedged between the teeth on the bucket. This caused the pipe to rotate & struck Employee B in the shoulder & head. No broken bones concussions or contusions. Just sore.