If it starts and runs briefly its probably not the main relay. If you can keep it running by applying some throttle then it might be idle control. If it starts and then dies regardless of what you do with the throttle then it is probably fuel supply related and that could be lots of things - failing fuel pump, fuel pressure regulator, power supply to the pump (the resistor), MAP sensor, ECU problem .... Try using the service check connector to see if there are any stored codes that point you in a particular direction. If you don't have any codes and you are not prepared for or don't have the time for a deep dive then tow it to a competent mechanic.