HELP! Puppy wont eat

alexandra
I have a shi thzu mixed with chihuahua..and hasnt been eating her food for 2 todays now..i give her ham and eats it..last night she threw up some white stuff..i give her the pedigree brand..what is a good brand that you know of ? What kind of dog food ?