While installing a waterline connection, an aluminum trench box weighing 400 lbs. was removed so the legs could be adjusted. A mini excavator was used to tilt and hold the box while the leg pins were removed. The excavator operator set the box back down on all four legs and the legs pushed up inside the box causing it to fall over and strike one of the employees on his lower body resulting in a broken pelvis.