I have a couple of ideas to help.
First try locking and unlocking the doors and try door
Next have someone hold open the outside handle and press with force on the inside of the door to open it
Next open the outside handle and press the door closed
If none of this work you will need to remove the door panel and access the latch to release it,
BMW Technician
BMW Master Certifed level 1 Technican