Hi, Terry I would do a compression check first and always check the fuel flow second to isolate the problem area otherwise the usual suspects are:
1. Fuel tank empty.
2. Fuel cap or fuel tank not venting properly.
3. Fuel filter clogged with rust or dirt.
4. Fuel valve/petcock not in the on or reserve position.
5. Vacuum line to fuel valve cracked, broken, pinched, or missing*
6. Fuel valve/petcock clogged or diaphragm cracked, cut or torn*
7. Fuel line from the fuel valve to the carburetor or fuel pump clogged, cracked, pinched, bent, broken, or missing.
8. Fuel pump not working*
9. Fuel line touching cylinder or head causing fuel to boil and vapor lock, repair by rerouting and wrapping line with convoluted tubing.
10. Carburetor inlet clogged.
11. Carburetor float or needle and seat stuck.
12. Carburetor not venting properly overflow line or bowl fitting clogged, pinched, or bent.
* If equipped or applicable.
For more information about your issue and valuable "FREE" downloads that you will need for viewing or printing please click on the blue links below. Good luck and have a wonderful day.
Total Motorcycle Forums
Carburetor Issues on my 1982 xj650
Yamaha XJ650 1980 1984 Manuals
service manual not owners
OEM parts for Yamaha
Btw, I’m available to help over the phone in case u need at https://www.6ya.com/expert/gregg_c0ec1df182c7330e