A batsman cannot be given out if either umpire calls a no-ball.
The most common way this happens is when the heel of the bowler's front foot lands on or in front of the popping crease (the front line of the batting crease).
There are 12 other situations when the umpires can call a no-ball. You can find out more here:
The BBC is not responsible for the content of external internet sites