from your history it seems that you have got some infection in the stomach or intestine, it is called gastro enteritis
as you have sore head, indicates that you have got slight temperature.
One possibility is that you might have infective hepatitis
, resulting loss of appetite,nauseating feeling and stomach upset
you consult your doctor, he may go for blood, urine etc tests and come to the diagnosis and treatment.