Do you know which set these large grey ball and socket pieces belong to?
The top two pieces there (not the 2x2 square) are

Cylinder Hemisphere 2 x 2 Ball Turret Socket Base



and

Cylinder Hemisphere 3 x 3 Ball Turret



The top appears in 28 sets, the simplest of which is this ion cannon