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.
You need to maintain your balance throughout your entire swing sequence, this requires the torso and arms moving together allowing you to maintain your center