three sheets to the wind

(slang) drunk. From the fact that a drunken person is as helpless and disorganized as a sailboat with its sheets (sails) flying and hence its course and movement entirely out of control.