Repairs on chevy equinox

sometime the car will not start up. the head lights , radio, air and all works but the car will not start. after its sits for a while it will start back up.

Does the engine rotate without starting, or will it not even rotate? Does this happen when the engine is cold, when it’s warm, doesn’t it matter?