Quoted from smokinhos:Basketball - just dribbling out the clock. Football - taking a knee.
Often these are done as legitimate clock management strategies, when the team is ahead. If it's the NFL or NBA playoffs these are only done if the losing team is behind by so far in the final minutes that it's futile to play on (say, 24+ points with under a minute for NFL).