My engine light came on.what can be the problem.I never had this problem
on 2004 Chevrolet Avalanche 1500

When I turn my truck on and start driving

Go to an auto parts store and get a free read and post the code or codes on here so we can assist you.