Retirement tax questions

Why did you get the 1099R?  Did you cash it out or move it to your own IRA? What code is in box 7?