Either add the passage with the question so we know what you are referring to or do not post questions like these. Not everybody has read what you have. This question is completely useless and unanswerable without the story to go off of.
Answer:
It would be: In the middle of the night, the phone rang twice
Explanation:
This is because the other ones wouldn't make sense. Because as you can see,
in the middle of the night the phone, rang twice" Every sentence should be a complex or a compound sentence. The correct sentence should be a complex sentence where the comma determines what part of the sentence is independent or dependent. Ex: "In the middle of the night," that is the dependent part of the sentence because it needs another part to make it make sense. Because "in the middle of the night" wouldn't make sense by itself. "The phone rang twice" is an independent sentence because it makes sense by itself.
Can you give us a photo or the text?