A 28-year-old man was driving the car when it crashed near Bathgate in West Lothian.