He batted throughout the third day but England lost two wickets in three overs late on as they closed on 290-3, needing 34 more to avoid the follow-on.
Cook added 116 for the first wicket with Moeen Ali (35) and 165 for the second with Ian Bell.
Bell fell for 63 to Wahab Riaz, who also removed nightwatchman Mark Wood.
Those two wickets for four runs boosted Pakistani spirits on another day when bat dominated ball, on a soporific surface which has been widely criticised.
Source - BBC