A Pakistani court rejected appeals made by ousted Prime Minister Nawaz Sharif, his daughter and his son-in-law hoping to be released on bail, shattering their hope of boosting the campaign for their party.