Ezra has gone back to Jerusalem and prays to God because the people are intermarrying with the same people that caused them to fall into idolatry and lose their blessing in the world by God.  John sees a vision of heaven with a physical temple, with angels and all the host of heaven worshipping God.