A helpful overview here by Dan Wallace.
Update: I do disagree with Dr. Wallace at one point. I think he's right that "pastor" and "elder" are not strictly identical, but I would put it this way: not all elders are pastors, but all pastors should be elders.