Bought a new car this morning

To begin, you need to verify if its getting spark at the plugs when its cranking but not starting.
Does it have electronic ignition or points?
Then, see if its getting fuel when its not starting?
Does it have an electric or mechanical fuel pump?
These facts will begin to tell the story.