You may have pleuritis. That is inflammation of the outer lining of the lung. Usually it appears as a result of some lung disese such as pneumonia or bronchitis . Another possibility is the inflammation of the outer lining of the heart (Pericarditis). I suggest to you to go to an Emergency room. In the mean time you can take Advil tablet.
Please click the green accept button if my answer is helpful to you. A positive feedback rating and a bonus would be encouraging. If you have any further questions please feel free to ask. Take care , Dr.Yetimyan.