Political parties, not military, can unite people: ex-PM Khan