wont start when it warms up on 1991 Buick Riviera

my car starts without any hesitation in the morning but shuts off and won't start when it gets plugs wires fuel and air filter.please help ive put 500 dollars in this car since i bought it and i really need it to get to work

Asked by for the 1991 Buick Riviera
that sounds like the ignition module but the crank sensor will do that also