What does a ball joint do?

The ball joint in a vehicle is used to pivot between the wheel and the suspension. There are usually and upper ball joint and a lower ball joint.