05 Ranger cutting off
i recently got an 05 ranger 500 (carb ) and have discovered a problem and need help. This unit runs strong and idles smooth. it has 212 hours. Today we went for a short ride and stoped to talking to some friends for about 7 mins we left it ideling, when we went to take off it hesitated to go and started jumping (as if we ran out of fuel and then cut off but i had just filled it up before we left for the ride. it wouldnt crank back up but after setting there for 5 minutes, doing nothing, we were able to crank back up and ride. After it cut off i tried to crank again and it turned over fine but would not fire up. it has happened one other time for my wife. Today when it happened i noticed the fan kick on for a few minutes and then it went off, the engine had a very slight bog in the idle but still seemed fine untill we started to go. Im not sure what to do. Can anyone help me? I have checked the spark plug and its seems fine, i always hear the fuel pump kick on when cranking and the fuel filter isnt clogged. thanks for any help you can provide.