start but dies in 3 seconds sohc zcvtec Neeeeeedd helllp

first post----------i got a 93 civic si with sohc zc vtec -- sometimes my car will start then dies i try to step on it but loses power and dies dont know what it is and need help !!!------------ fuel pump maybe
?? well how do i test that ????
also it used to once in awhile but it would start back up
now it does iut all the time and does start back up
it also has a rough idle when am at a stop like if it wants to die 


now it does iut all the time and does start back up

