Pakistan turned the match their way with three quick wickets when Sri Lanka were 19 runs away before the match turned again