Controlling distance out of a bunker can be done in many ways, try all these methods and see which one works best for you
Make a long, lazy, slow-paced swing to create a high trajectory. This gets the ball up high so that it lands softly and does not roll. It is a risky shot, so only play it once you have practiced it sufficiently.
Bend at the hips and flex your knees so that you are in position to make a rotary swing