Have vet check pancreas levels. I have a pom that those were the symptoms when her pancreas would flare until we got her on correct food. Best of luck.
It would be difficult to even speculate what the problem might be. After that length of time without eating and vomiting, a visit to the Vet should probably be done and soon.
Try cooking up some chicken and rice (no skin) and see if he might eat some small meals of that but it sounds like he should be checked.