HCI is the technology, UX is the technique.
If the UX of making a phone call includes:
In the case of making a phone call, the HCI is the phone's touchscreen.
Or for another example, for the UX of making an online bank transfer:
Each of these items is designed each one has its own error messages or fail states that need to inform the user of what's wrong (no OS, no browser, no internet service, no website, no account, etc).
In the case of making an online banking transfer, the HCI are your computer keyboard and mouse.
Does that make sense? UX encompasses all designed parts of an experience, HCI is concerned with the interfaces between humans and computers, usually in a physical sense (hardware) even more so than how you use the hardware (software, UI)