Three-party coalition government collapsed after the chancellor fired his finance minister amid a row over the budget.