Basically, it reduces brain uses so the patient is in a very drunk kind of state. This means that they are more likely to tell you the truth because they can't see the consequence.
-
http://en.wikipedia.org/wiki/Sodium_pentothal
-
I think it's just something that makes you trust people more, thus becoming more likely to tell the truth.