Chances are it came loose and the inside taper in the crank is damaged, take the crank off and check for a ridge inside it, it'll stop the crank seating properly on the spindle. You may be able to use a triangular file to reshape the inside of the taper so it's smooth.