If both your head lights have had moisture in them, there could be a lot of damage. There are 2 modules on each headlight that control the up & down movement, they are on the bottom. There are also 2 modules on the side of the headlights that control the side to side movement. These 4 modules talk to the light module, that controls all light functions. You will need to remove the front bumper cover to access the headlights. Remove the lights & find out where the moisture got in from. Hope & pray that the wiring & stepper motors inside the headlights are not fried.
You can start changing out modules hoping you guess correctly, or damage more looking for the problem. The passenger lights functions travel thru the drivers side headlight. So if the drivers side is damaged, the passenger side will not work properly. The modules are not cheap, but very cheap compared to the headlights. You could be looking at a very expensive repair, & at some point you will need the BMW software to test the modules & code them after they are installed.