Each character should have a unique viewpoint and should sound unlike the others. Characters can be defined based on what they ask or tell as well as what they refuse to reveal.
Dialogue can replace long narratives to move the pace along with information that is important but not essential to tell in detail. It can transition between time periods. It can heighten tension, as when two characters disagree or be a way to shed light on how others perceive you.