washer timer or sequencer problem

My washer when I turn the knob to start it will start for a minute then cut off but I can push on the top panel and it will start back but sometimes it will cut off again and if I push it back again it will start back and sometimes it goes in and out and I have to keep messing with it to start back I think it’s something in the top panel could it be the timer or a sequencer problem.