Its a best of 7 series.
So first team to win 4 games.
The team with the higher Win/Loss record gets home court advantage. (which in the NBA is a HUGE thing).
Teams usually have approx 70% win percentage at home and around 50% win percentage away from home. (Finals teams only)...