There are various medications for chest pain, and the appropriate one depends on the cause. Nitroglycerin is commonly used for chest pain related to heart conditions such as angina. However, it's important to consult with a healthcare professional before taking any medication.