Handball ( also known as team handball , Olympic handball , European team handball , European handball , or Borden ball ) is a team sport in which two teams of seven players each ( six outfield players and a goalkeeper on each team ) pass a ball to throw it into the goal of the other team .