I made a prize roulette in godot that has three turns, but I can't make it lock between turns so that it doesn't continue spinning until the prize comes out and that when the turns are over it doesn't spin anymore, I also need that instead of clicking with the mouse or pressing a button on the keyboard or a control, if someone can help me with that I would appreciate it

You'll probably have to post your project somewhere and link it here. It's hard to tell what you need from the description you gave.

a year later

Basically, set it to true when the wheel starts spinning, and don’t let it spin again until it’s done and you’ve set it back to false. That way, it won’t keep going when it’s not supposed to.
To stop it after a set number of spins, I just used a counter. Every time the wheel spins, I’d subtract one from the counter. When it hits zero, just block any more spins by keeping isSpinning locked at true or disabling the input altogether.
If you want it to spin on its own without clicking or pressing a button, adding a timer works great. Set up a Timer node to trigger the spin function after a certain time—it’s super simple and does the trick.
Also, if you’re into these kinds of games, I’d say take a look at Slot77. It’s got some fun ideas that might give you a bit of inspiration for your roulette.