Get into position on the floor or on parallel bars.
Keep your arms straight and use your hip flexibility to lift your hips until your back is perpendicular to the ground.
At this point, finish lifting your legs to get into a pike position.
Ideally, you should not lean forward, but it requires a lot of flexibility.