the dog might be suffering from separation anxiety. however, you better make sure he must does eat or drink, if its normal diet is commercial dog food try giving boiled chicken or liver and still try to play or touch him more often...but if the condition does not improve, especially if he is inappetent for more than a day, would be best to bring him to the nearest vet clinic in your area.