In the sentence "The doctor phoned the nurse because he was late," the pronoun "he" refers to the doctor. Hence, it was the doctor who was late.
