Since the combination of azacitidine and cisplatin has not been used in patients with head and neck or lung cancer, the investigators are performing this study combining azacitidine and cisplatin to find out what effects, good and/or bad, the study drug may have on patients with advanced head and neck or lung cancer. The investigators are doing this study because they would like to find a better treatment for these types of cancer.