Randomized phase III trial to compare the effectiveness of radiation therapy with or without thalidomide in treating patients who have brain metastases. Radiation therapy uses high-energy x-rays to damage tumor cells. Drugs such as thalidomide may stop the growth of brain metastases by stopping blood flow to the tumor. It is not yet known whether radiation therapy is more effective with or without thalidomide in treating brain metastases.