had become; was supposed toThe meaning depends on the construction. With a state or adjective, it means “had become” or “was in a state”; in ことになっていました, it means “was supposed to” or “had been decided.” In お待ちになっていました, お〜になる is an honorific form, so it means “were waiting.”
JA: 来週から東京に住むことになっていました。
EN: I was supposed to live in Tokyo starting next week.