Check as follows:
check gas cap vent for vapor type lock
check battery connections (I've had a bolt bail on me and had same type of symptoms)
run 2 oz of seafoam through full tank of gas (gas may not be getting through jets)
replace spark plug, check wires, coil etc.
check cdi unit (older bikes had weak electrics
Let us know what you find.