The judge can still order the repairs be made or services restored.
If the landlord is in court, but refuses to sign a consent order or a stipulation, you can ask for a trial. If a trial is scheduled, you will have to prove your case.
Show that the landlord was properly served and proof of the bad conditions.