Pakistan won the first Test -- a day-night affair played with a pink ball -- by 56 runs to take a 1-0 advantage.