What user interface means
MDN defines the user interface as anything that facilitates the interaction between a user and a machine. In computing it can be a keyboard, a screen or a program; in software, a command-line prompt, a web page or a form. The abbreviation UI is used in most languages, including Spanish and German.
Nielsen Norman Group explains the difference from UX with an example. A movie review site can have a perfect interface for finding films and still give a poor experience to someone looking for a small independent release, if the database only holds films from the major studios. The interface is an important part of the experience, but the experience covers every contact with the company, its services and its products. Usability, according to NN/g, is a quality attribute of the interface: whether it is easy to learn, efficient and pleasant to use.
The interface is one part of the experience, shown with Nielsen Norman Group's example.