Traditionally, an engineer is responsible for capturing sound - microphone choice, gear, etc. A producer can have a number of different responsibilities - anything from songwriting to judging performances - setting mood, and (perhaps most importantly) choosing which songs to work on!