1. If the elevator is old and uses steel ropes, it will stop at the point the power was cut. Brakes wont operate because it will just stop, not fall. Then u have to go at the top of the building and rotate the big wheel by hand (ask an expert how to do it) until the cabinet move to the nearest floor, then use a special key for the door to open. Have in mind, in some elevators the door does not open with this key until cabinet is exactly on the floor level.
2. If the elevator is new and uses oil pressure system, thing are easier. Brakes wont operate because it will just stop, not fall. The elevator control system when power is down usually open a valve and let some fluid to pass, causing the cabinet to move slowly to the nearest floor or mainly move to ground floor. This system has also valves that you can manually use in order to move cabinet to a lower floor or ground floor, if it does not happen automatically.
In both cases, its advised to consult an expert before trying things.
Hope it helps.