After 14 years, Nawaz Sharif is back at the helm in Pakistan. The nuclear-armed country faces a welter of problems, from terrorism to tensions with Afghanistan, India, and the United States. To move Pakistan forward, Mr. Sharif must focus on three priorities.