If the motor sat for a while, there is a good chance that the injectors are fouled. Every LS our local shop has dealt with has had to replace the injectors on motors that sat, including mine. If the injectors are good, check your O2 sensors: make sure they are the correct ones for your ECM...