My Kia when hot won't crank, but will crank when it sits awhile, on 2001 Kia Sephia

The fuel pump has been changed also started shutting down on me while driving

Asked by for the 2001 Kia Sephia
Sure does sound like a crank sensor! Have it scanned to see IF anything comes up but i doubt it will. It would be nice if a mechanic could check it while it's acting up!!