The bottom one, connecting to your EGR (the UFO shaped thing) should go to a fitting on your throttle body. It needs vacuum to operate properly.
The other one may go to your heat/AC system, but it's hard to tell in that photo. Do you have any more angles?