All joints have different types of movement.
For instance, the elbow has only the ability to flex and extend. To flex the elbow, you bring the hand close to the shoulder. To extend the elbow, you straighten it out again. Flexing the hip brings the knee close to the belly, extending the hip straightens the leg out. Hope that helps.