Programmaticlly turn off 3v3 output

I am brand new to Aduino, but not to programming. I am able to read the gyroscope to tell how the board rotates, but I can't figure out how to send power to the 3v3 pin and turn it off. I have an led attached to that output. I want to turn it on if a board hits 25% rotation and back off if it is under that threshold. Not really sure how to find this. Thanks for any suggestions you have.

Arduino Nano

Are you talking about 3V3 to the gyroscope? The typical way to do that would be to use a transistor between the gyro ground pin and actual ground. The gate is connected to an arduino pin to drive the transistor. Turning it on causes ground to be connected and the gyro to be powered on, turning it off is the opposite.