It is quite common to get divorced before selling a home owned by both spouses. How you do that depends entirely on what you want to happen to the house. But there are a few constraints to bear in mind:
The most important thing to remember is that your divorce is a lawsuit between you and your spouse. Nothing you do in the divorce case can affect the rights of any third parties, such as your creditors and home lenders. If you and your spouse are both signers on the house's mortgage note, then you're both equally responsible for that debt, and you remain so even if the divorce decree says that one of you is to receive ownership of the house. If that's your goal, then the only way to remove the other person from responsibility for the mortgage is for the person who receives the house to refinance. But if the house has less equity than debt, then that's likely impossible. There is no solution to that problem. The only thing to do in that case is to wait, and hope that the house's value can rise and it can be sold or refinanced - or, if it is foreclosed upon, that your mortgage agreement doesn't allow for deficiency judgments. But this is all quite speculative and technical, so moving on:
If neither of you intends to keep the house, and you want to sell it, then you can include terms in your divorce decree to direct the sale of the house and fairly distribute the proceeds.
Your question implies that your husband is leaving you in physical possession of the house for the time being. If that's the case, then you've got to consider that you'll both need to be able to afford a place to live while this works out. There is no law that says one partner has to pay spousal support, or utilities, or whatever - these things can be agreed by the parties in whatever way works, or if you can't agree, you can submit the dispute to a court for a decision. The law requires an 'equitable distribution' of assets, and the court will be more concerned with assuring that everyone will be able to survive, than with assuring that everything is exactly "just."
If you're going through a divorce, especially one where the ownership of real estate is at stake, you need to consult with an attorney in private. This is not a do-it-yourself process.