Sarfraz century lifts Pakistan to 251 after early blows