Get it plugged in for a diagnostic - possibly the coolant temperature sensor - there are 2 sensors but could be the one for the ECU as opposed to the one for the gauge.
All this is assuming it actually turns over OK as said above.
A forum community dedicated to all BMW owners and enthusiasts. Come join the discussion about performance, modifications, tuning, specs, classifieds, troubleshooting, maintenance, and more!