He needs a vet to look at him - unless you fed him some sort of a foreign substance that did it
My Dog Just Threw Up What Looks Like Watery Red Blood - But Other Than That (and Not Wanting To Eat) Is Acting Fine?
Go to the vet. You have two symptoms indicating a problem and the situation can escalate into dire or life threatening very quickly. Even if you gave you pup something and THOUGHT it was fine it might not be. Sooner is better than later most of the time.