Also before it stopped working it revved really high and when I let off the clutch it jumped and turned off. After that it wouldn't crank again.
when you say wouldn't "crank" I assume you mean "start" ???
a lot of bikes have the tendency to rev high right as they're running out of gas....(pull the fuel line and turn the gas on...does fuel come out of the line?) you cleaned the carb but did you check if the gas tank was clean? dirty tank = carb is probably dirty/plugged again....
Also the air box keeps disconnecting from the funnel that attaches it to the carb and I don't know what to do about that. It won't stay on for anything.
Is it coming off the carb itself? or is the air box and the "funnel" separating?