I dunno what happened but i was driving one night and when i made a right turn in the middle of the turn the wheel locked up

. i dident no what to do but i stopped the car in the middle of the turn and turned it on again, drove down he block and pulled over to check if something was blocking wheel or see somethign out of place, but nothing. its been 2 days now and it hasent happen again. anyone have any ideas what could of happened? i think i was luck this dident happen on the high way or i wouldn't of known wat to do.