If it's on the left side, and it gets worse when you inhale, then it's probably nothing serious. https://en.m.wikipedia.org/wiki/Precordial_catch_syndrome
It could be heart disease but you should ask a doctor or a medical forum (not WebMd because it always diagnoses people with cancer or any other terminal illness)