A Pakistan court on Monday jailed former Prime Minister Nawaz Sharif for seven years on graft charges that he says were politically motivated.