A Pakistani anti-corruption court on Monday jailed former Prime Minister Nawaz Sharif for seven years on graft charges he says were politically motivated.