Get your dog an appointment to see a Vet. Your dog could become dehydrated from not eating and he could possibly die. It's always better to be safe then sorry when dealing with a dog who won't eat.
These two are the first symptoms of illness in dogs. It might be digestive problem. In that case withheld the food for one day and allow the dog to rest.