This morning when I woke up my head and stomach hurt. I threw up and feel much better. I feel like laying down all day. I got the flu shot?

What is the question. You don't indicate when your influenza vaccination took place relative to the onset of your symptoms. You may be developing the flu regardless of the vaccine. Side-effects of the vaccine seldom produce symptoms like those you have described. If you continue to improve, hope you stay well and ask any further questions with more specific info.
Typical for 3 days. Thus is not unusual for about 3 days. As long as you do not develop a high fever or progression, it should resolve in 3 days or less.