Chris Woakes claimed a five-for against Pakistan in the fifth ODI at Headingley, tearing through their top order in his first two overs.