Understanding everyone’s role can help ensure a smooth and successful home purchase.