An illegal shot in pool can be caused by scratching, a ball not hitting the cushion, or pocketing the cue ball or object balls in the wrong order. Any of these actions can result in a foul and give the opponent ball in hand.