Thanks for the query.
With the details you have given, it can be either a heart problem or a respiratory problem. For identifying it, you will need to undergo a proper physical examination and certain investigations like X-ray of the chest, Electrocardiography
(ECG) and Echocardiography
. Depending on the findings by your doctor and after co-relating with the results of the investigations, he would be able to confirm on the diagnosis. Today, with the latest technological advancements in medicine and machineries, it is easy to treat both heart diseases and respiratory diseases. So keep yourself peaceful at mind and let us take it in a more systematic way to improve your health.
Hope I have answered your question. If you need further assistance please let me know.