There is also a possibility that your chainring or cog is bent out of shape. Also, your chain could be stretched or not pulled to correct tension, generally it is a good idea to have a good amount of tension to avoid having your chain come off while riding.