This indicates that there is something wrong with its stomach. Reasons for this can be gastritis, bloat, and intestinal issues. If your dog is not eating or resting and vomiting then you must consult a vet.