The basic recipe here is that slot machines have a number of symbols on each reel. These are randomly shuffled around so that when the reels stop spinning, the screen shows a mix of symbols. If the final symbols match and are aligned on active paylines, starting from left to right, you receive a payout.