You want the torture to stop; the torturer doesn't know when to stop. They'll keep hurting you until they think you've told them everything, even if you already have.
If you're trying to figure out the truth in a fluid and confusing environment, then it doesn't work well because it motivates the victim to do whatever they can do to end the conversation as quickly as possible.
Imagine you're suspected of a crime or terrorist act, but you are innocent.
Your captors however are sure of your guilt and determined to find out what you know by torture.
The more you insist you know nothing and that you are innocent, they more they believe you are resistant to their torture methods and so they keep upping the ante.
Eventually you will reach a breaking point where you can't go on, and you will start making up stories and saying anything just to get them to stop.
And that's why torture doesn't work, because you can't trust the information that you gain from it.
Can you cite some cases where torture has got correct, verifiable, and timely information that couldn't have been got by other means?
Which means it doesn't work.
https://shadowproof.com/2009/04/18/khalid-sheikh-mohammed-wa...
How do you determine, ahead of time, when torture will work and when it will produced false information?