A Pakistani court granted bail on Friday to jailed former Prime Minister Nawaz Sharif on medical grounds, a lawyer for Sharif said.