1988 Ranger 2.9 4x4 sometimes will not start i can not hear the fuel pump turn on when it wont start other times i hear the fuel pump click right on and it fires right away. I have replaced the relay?

Now replace the electric pump and all your troubles will be gone...its a bad fuel pump...not uncommon on electrical fuel pumps.