The elevator an EE was using malfunctioned and stopped approximately 6 ft from the ground level. The EE was stranded in the elevator for approximately 2 hrs. after which, they decided to attempt to exit. As the EE exited the elevator, they fell to the grating on the ground level, an approximate 6 ft fall, striking their side and back. The EE fractured 2 ribs.