Running Eratic

Have a side by side fridge when i tap the controls with my fist it runs sometime for a short period sometimes for a couple of days then stops again replaced the timer? thinking it might be the thermostat
please advise
Thanks!

I would drop the control panel and tap on either the defrost timer, or the cold control, most probably a bad cold control AP3037004, timer AP3110896