Hello and hope you are doing well.
Pain can happen with injury, repetitive activity or an infection of the skin. Sometimes it can be costo-chondritis, inflammation of the sterna rib junction. The other causes could be gastritis, peptic ulcer disease and GERD. Disorders of the spleen and colon could also cause pain. Kidney disorders too produce colicky and sharp pain. Sometimes anxiety with flatulence can cause this pain. you will need to consult your primary care physician for proper evaluation of pain and therapy. In the meantime you can take OTC pain medication Ibuprofen. Ensure to take this medication after food to avoid gastritis.
Thank You as suggested visited my physician and confirmed that is of gastric issue only. now its fine. thank you