They waited for hours. This means that they started waiting hours ago, and then the waiting stopped prior to the present time.
They've waited for hours. This means that sometime, it's unspecified when, they waited. Maybe today, maybe earlier, but sometime. It's simply a statement of an activity that took place and is not ongoing.
They've BEEN waitING for hours. This means that they started waiting hours ago, and they are still waiting.