Most commonly, a loss of spark is caused by failure of the crankshaft position sensor. By chance, do you have a live data scan tool? If you do, check to see if there is an RPM signal when cranking. If you don't, if the vehicle has a tachometer, see if it moves at all when cranking. If it doesn't, suspect the sensor.
I don't know if this happened all at once but take a look through this link and let me know if anything seems to mirror what you have experienced:
If you find this is the issue, here is a link that explains how in general to replace one:
I attached a pic below showing the sensor location.
Let me know if this helps or if you have other questions.
See pic below.
Wednesday, August 17th, 2022 AT 9:25 PM