GE Over the Stove Convection/microwave oven

My microwave still heats but the fan and light both quit working. It has been doing this for about one year, but we have been able to tap it a few times and it starts working. Once the light bulb burnt out the fan quit completely. Any idea what this could be?