Check your fuel filter, and hope that is the problem. It also could be the fuel pump, the fuel pump relay, or possibly a clog in your fuel lines or injectors. Or maybe you just have old gas in your tank that needs to be diluted with new gas.
Search BMW 5 Series Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
BMW 5 Series Experts