I wanted to take my e36 325i out for a day, the car started and drove fine as usual, got about 3 miles into my trip when it suddenly died and wouldn’t start again, just kept cranking. After checking over the car and trying to find an issue I could find nothing. Then a few hours later it started again but not for long, a couple more hours later she started again and managed to get it closer to home before it died again, waited again and got onto my driveway.

The gauge cluster shows the car is at normal temperature and wasn’t overheating, battery has good voltage, when the car dies it just goes down in revs till the engine is off, can anyone give ideas as to what could cause this?