Car struggles to turn on?

I have a 2004 Ford Ranger 3.0L and it has recently had some issues starting up. It takes several cranks before it starts up the first time. Within 15 minutes of it being turned off, it will start back up completely fine.

The battery is new and I have replaced the fuel pump fuses. What exactly is happening?
Update: The fuel filter has just been replaced as well
Update 2: The truck seems to run fine once it has started running
Update 3: It was the fuel pump that was the issue. Replaced that and now it's working
2 answers 2