Chest pain can be caused by - a heart attack , an aneurysm , pericarditis, pleurisy , pneumonia ...
Vomiting causes acid rising into the esophagus, it can irritate causing esophagitis. Esophagitis can give chest pain.
Chest pain can be generated by: heart attacks, aneurysms, pericarditis, pleurisy, pneumonia, acid reflux, gas, esophagitis, pulmonary embolism, ...