Does Pakistan have a king or queen?

Yes, In 1947, King George VI relinquished the title of Emperor of India and became King of Pakistan. He retained that title until his death on 6 February 1952, after which Queen Elizabeth II became Queen of Pakistan. She retained that title until Pakistan became an Islamic and Parliamentary republic in 1956.