When cranking sounds as if alarm system not letting it crank. Tried resetting. on 2003 GMC Yukon Denali

Get a reading saying battery not charging and also service drive control. Left key in truck while in church came out husband put his key in to open door alarm went off cut alarm off drove to friend house got ready to leave wouldn't't crank. Starts up like it is going to crank but won't.

Asked by for the 2003 GMC Yukon Denali
could be your alternator try boosting the vehicle to see if it will start