The fact that it has spark says the crankshaft sensor is okay, I would turn the key on without cranking the engine over to see if you can hear the fuel pump work in the tank for about 5 seconds. Also, you can use starting fluid to narrow down the problem that the problem is indeed the fuel system. The clicking under the trunk is strange because the only thing that can click is the EVAP solenoid system but this can be a clue that the voltage is low when the engine is cranking over, so when you say it won't start do you mean the engine won't crank over or the engine cranks (starter working) but the engine does not run? Can you please upload a short video of the problem that would help a lot. In the meantime, here is a guide you can go over to get us closer to fixing the problem:
https://www.2carpros.com/articles/car-cranks-but-wont-start
Please go over this guide and report back.
SPONSORED LINKS
Tuesday, February 21st, 2023 AT 2:29 PM