I sometimes get aching pain on my left side under my left rib cage. What could this be?

Many things... Pain above the waist can be your heart (i.e. Angina), chest wall or musculoskeletal pain, your lungs, or even your GI tract such as reflux. Speak with your physician and get some additional testing to be certain it's not serious.