Will Jacks bagged his first Test wicket for England when he had Pakistan opener Abdullah Shafique caught behind by stand-in wicketkeeper Ollie Pope.