What breed and weight is your dog?How long is he acting this way?
Is he eliminating fine?Anything new in his food or environment?Thanks,
I am sorry your boy is having trouble.
Feel all over his body and look in his mouth for any abnormalities.Check his teeth and ears.
It sounds like he may be in pain or be stressed.
Since he is eating and eliminating fine it may be related to stress.
Get a DAP plug-in to calm him:http://dogappeasingpheromone.com/
He can have 3 mg of melatonin every day:
Feed him something with turkey at night. It contains l-triptophan and is sleep inducing.
Also give him one teaspoon a day of plain yogurt to keep "good" bacteria in his system.
If he develops any abdominal pain, bloating, constipation or cannot keep anything down he needs to be seen by a vet.
Please let me know how he is doing. I will always be here for you
I hope your baby feels better very soon..
Best wishes for him,