Toys or Food? Help! Which one is BEST to train my dog?

How do you know when to use food and when to use toys when training your dog? What do you do if your dog is not interested in toys when food is around? How do you handle it when your dog turns down food when they know you have a toy in your pocket?