PURPOSE: This phase II trial is studying how well giving cetuximab together with cisplatin and irinotecan works in treating patients with metastatic esophageal cancer, gastroesophageal junction cancer, or gastric cancer that did not respond to previous irinotecan and cisplatin.