the hoop. A basic basket is worth 2 points. There are one point and three points opportunities as well...but the important thing is to score more points than your opponent.
Also players aren't allowed to just hold the ball and run down the court (except in the NBA). They have to pass it or "dribble" it.