The lights in the room won't turn on.

Literal

Room's electricity [subject-が] turn-on-not.

Uses the intransitive つく (to turn on) in negative form. The が marks 電気 as the subject. Using 電気をつけない (I won't turn it on) would change the meaning to a deliberate choice.