Thank you for the replies.
@stefan.erni
@medelec35
But I tried everything you said. The result has not changed.
I have set the Led to stay on if any data comes in.
I can see incoming and outgoing data via UART to USB converter. But the PIC cannot see any of these data.
Pictures of incoming and outgoing data to PIC from ESP8266 are attached.
In addition, if I choose the configuration of the UART module as software instead of channel 1, a compilation error occurs.
Data sent by ESP to PIC

- Data sent by ESP to PIC. .png (184.06 KiB) Viewed 8136 times
outgoing data from PIC (Data from PIC to ESP )

- outgoing data from PIC (Data from PIC to ESP ) .png (72.91 KiB) Viewed 8136 times