It could be Pleurisy. Get checked by a doctor if you have any symptoms for pleurisy.
Pleurisy (pleuritis) is a type of lung inflammation that causes sharp chest pains when breathing. The pleura is a membrane made up of layers of tissues that line the inner chest cavity and a layer of tissues around the lungs. When this membrane becomes inflamed it leads to pleuritis.
Pleuritis leads to chest pains that worsen when breathing; when we breathe the pleura rubs together. When the pleura is not inflamed the rubbing together does not cause pain because no friction is being generated, but once inflamed friction occurs, it leads to pain.
Although pleurisy was once a serious and even life-threatening condition, it is not nearly as common any longer; medical advancements have improved treatment and become better at preventing bacterial infections, which can lead to inflammation.