Today, basketball teams can only hold onto the ball for so long before they have to shoot. In the NBA and WNBA the shot clock is 24 seconds. Effectively, this means teams have to give up control of the basketball every 24 seconds or so.
This restriction was not always there. Before 1954, it was legal for a team to build up a comfortable lead, then simply hold onto the ball for the rest of the game!