My dog had stopped eating before and it turns out he just had the flu and was okay 3 days later.
He just didn't feel like eating and finally ate after the 3 days.
Of course it could be something else altogether. If your dog doesn't want to eat after 3 days then I'd take him to the vet to have a checkup to be sure it's nothing else more serious.