So lock to lock didn't work!? is your vehicle 2005 with the touch screen Nav system?? or is it the BMW M62 engine L322??
If it is the BMW M62 L322, then do the lock to lock again and pause at each lock position...this must be done from first start of the engine before moving the car!
Do you have any lights on the the height selector switch at all??
The L322 has 2 fault modes, hard and soft.....a soft fault means the vehicle can determine ride height and will try its best to maintain it, but there is a fault in the system, like the compressor is bust or similar.
A hard fault is when the vehicle stability cannot be determined or maintained so it lowers itself to the bump stops and freezes the system...this could be due to a bust height sensor or empty air tank!
A soft fault is indicated by the warning message and the standard ride height light & the ride heiglt hold switch light illuminated.
A hard fault is when there is no lights on the suspension controls at all!
If after a lock to lock (which resets the steering angle sensor) didn't work, it is time for diagnostics to determine the fault.....
the EAS system can go out in sympathy with the ABS system.....so check you ABS sensors and wiring...they have been known to chaff the wiring to the front wheel sensors on the inside of the wheel rim!!