It could be a lot of things... the fact you say it locked up might indicate a meniscus tear of some sorts. While we all want insta answers, your best bet is going to be to get the mri and follow your doctors instructions. Knee injuries take a rich measure of patience. Best of luck.