In the past we used the word "sentience" for this, but sci-fi confused "sentience" with "sapience," and now we have four terms that are meaningless, causing pointless arguments because different people interpret them in different ways.
- consciousness
- sentience
- self-awareness
- sapience
(It really doesn't help that 3/4 these are too poorly-understood to even have a good formal definition.)