compressor fan not working/ice maker not working

having trouble with fan not turning without hand turning to get started on gsh25jsrfss. can hear click from motherboard,then fan tries to come on,also icemaker and door dispenser have stop work and if i try them the fridge shuts off and then clicks back on.can not afford new fridge, but could afford to fix this one no complaints untll now