These are the simple but maybe unknown steps for burning a HEX file into a PIC microcontroller using MPLAB X IDE:

Select prebuilt project

Select prebuilt project

Select file and device

Select file and device

Write a project name

Write a project name

Make and load

Make and load

Ensure loading has succeeded

Ensure loading has succeeded