Welcome to the community.
I would add to what Indeed posted that you check all the main electrical leads from the battery as well as check the battery out. Look for any corrosion and such around the connecting points. As well I would even go to Autozone and have them hook up their battery and alternator tester (can be done in the vehicle) and see what they have to say.
Maybe even replace the fuel filter. I have YET to buy a used car that had anything other than the OEM factory fuel filter on it. Seem people dont give that item much thought.
Let us know what all you do so we can kinda check them off mentally and continue to help out if any of these things dont do the trick. But I would be in agreement with Indeed with just the information you gave us, its probably in need of a very good tune up.