Pain under the left rib cage can be a sign of a heart attack, which is a medical emergency. An enlarged or ruptured spleen, which may result from trauma, can cause sharp pain. Kidney infections can ...