Basically after you score a TD or FG, you get the ball back with a "4th and 15" from your own 25. You get one offensive play to get that 15 yards, and if you get the first down, you get to keep the ball. If you do not, your opponent gets the ball where the play ends.