Cube is a horror movie that came out in 1997, directed by Vincenzo Natali.
A group of people wake up to find themselves in a room. That room has doors on every wall leading to other rooms. The people have no food or water. And some of the rooms are booby trapped.
The movie has two aspects, the escape plans which change and evolve as they learn more about their prison, and how they interact with each other and deal with their own panic and paranoia.
It's a little campy at times, but on the whole it's a wonderful psychological horror movie, with close calls and enough fatalities to keep you on the edge of your seat.