Quick answer
A utility generally may not refuse service solely because of an unpaid pre-filing bill, but it may require adequate assurance for future service.
General information, not legal advice about your situation. Laws, dollar amounts, and local rules change, so check current requirements with the official sources below or your court.
More detail
Bankruptcy does not make post-filing utility service free. The debtor may have a short period to provide a deposit or other assurance allowed by bankruptcy law. Local procedures and the type of provider can affect how disputes are handled.
Related official reading
These sources do not endorse Bankruptcy Buddy.