Like Arif Patel Dubai says there are a lot more ways through which runs are awarded. These ways are essentially called extras and include wides, no balls, byes, and leg byes. It is a no ball:
When the bowler oversteps while bowling,
The ball is a full toss above the waist of the batsman,
The ball bounces more than once before reaching the batsman or
Or when a fielder is illegally positioned in the field.
In all these cases, a single run is awarded alongside the other runs scored by the batsman. In a no ball, the batsman cannot be out apart from being run out or when he hits the ball more than once or obstruct a fielder or the bowler or directly handle the ball. A ball is not counted when a no ball is bowled.
Further, Arif Patel cricketer explains that a wide delivery is a ball where a single run is awarded along with any other runs scored. An umpire calls it a wide ball when they think it is pretty much difficult to play the ball. The rules for a wide ball are quite lenient in test cricket and quite strict in limited-overs cricket. The batsman can be dismissed by running out, stump, handling the ball, obstructing the field, or hitting the ball more than once when the ball is delivered. A ball is not counted when a wide ball is bowled.