As a beginner of any sport, before playing you need information about it, read till end there are some information/link provided which might be useful for you.
Basketball is a team sport in which two teams, of five players each, opposing one another on a rectangular court, compete with the objective of shooting the basketball into the basket which is mounted high to a backboard at each end of the court, while preventing the opposing team from shooting through their own hoop.
Players advance the ball by bouncing it while walking or running (dribbling) or by passing it to a teammate. On offense by dogging opposing players, carry the ball to the basket ring for which they may use a variety of shots—the lay-up, the jump shot, or a dunk; On defense, they may steal the ball from a dribbler, intercept passes, or block shots; either offense or defense may collect a rebound, that is, a missed shot that bounces from rim or backboard.
The five players on each side at a time fall into five playing positions: the tallest player is usually the center, the tallest and strongest is the power forward, a slightly shorter but more agile big man is the small forward, and the shortest players or the best ball handlers are the shooting guard and the point guard, who implements the coach’s game plan by managing the execution of offensive and defensive plays (player positioning).
A field goal gives two points to the team which put the ball into the basket unless it is behind the three pointer line, which gives three points. The team with most points at the end wins the game, incase both teams have the same points (the score tied), an additional time of play (extra or over time) is provided for tie-breaker.
While playing many type of fouls can also be committed by players which may results into different types of penalties.
To know more about the fouls click Fouls in Basketball