My left side under the ribs cage is in pain and so it upper left side chest. I also have the sharp pain I n my head. I don't know what is happening?

See your doctor. This is a problem that necessitates a face-to-face meeting with your doctor. This will allow him/her to examine you, ask specific questions. And possibly order tests to find out what's wrong and what to do to help you.