Freezer keeps frosting up in back. Then slowly gets warmer

My freezer builds up frost then stops working over time. I defrosted it twice by unpluggin it and within a week it starts frosting up and getting warmer. What parts should i replace to fix this? Please HELP