I'm Neal and I am here to assist you. Only accept when you are happy with my assistance. If I can't help I will open your Question to other experts.
A intermittant fuel pump is a common issue, the next time it will not start, try a little starting fluid and it it tries to run with it then it is likely the pump. Also test for spark the next time it will not start if the starting fluid does not work.