Scrambler 500 rear problem

Hi,I need some help guys,I just traded my dirt bike for a 2000 scrambler 500 4×4,I rode it for maybe a hour last night and it was fine,I got home from work today and was going to go for a ride, I put it in gear and pushed the throttle and only the left rear wheel was spinning.. So I jacked it up,and when I spin the right rear wheel by hand it just spins but not the axle…. What is the problem and What do I need to fix it?