2005 nissan sentra 1.8s

after driving for a few miles 1st the cruise becomes inop, then the check engine light comes on. Some symptoms include engine revs but car wont move in gear. Shut car off, restart it drives again. Has no code from ECU.