I had a problem similar some time ago, was the connection on the fuel pump relay under dash, it had melted the plastic, took ages to find it as sometimes it worked then other times it didn't, repaired socket on relay been ok since, maybe worth checking, also may be worth checking connections on your imobiliser as I had a fiesta also similar turned out to be knackered imobiliser.