Welcome To BYC
Could he have eaten anything rotten, moldy or rancid?
What's his poop like? Photos are always welcome.
Work on hydration and offer wet soupy feed. Deworming is a good idea, what are you using?
Check the crop to see if it's emptying overnight, if it's not, then you'll want to...