When the ball is live, the game clock and shot clock are ticking. You'll always know when the ball is live since players will be moving on the floor. The ball becomes live when the referee gives a team possession of the ball to put it into play.
There are three ways to put the ball into play that will make it live in basketball:
You can learn more about jump balls in Basketball Jump Balls.
On an in-bounds pass, the referee will give the ball to a player on the team with possession. This player stands out of bounds on the sidelines or baselines and passes it to a teammate on the floor. The ball becomes live once the players gets the ball from the referee.
You can learn more about free throws in Basketball Free Throws.
Turnovers can be categorized as either live or dead ball turnovers. A live ball turnover is when the ball stays in play such as a stolen pass, while a dead ball turnover occurs when the ball must be inbounded like after a travel. Usually live ball turnovers are worse for a team because they can more easily lead to a fastbreak.