You're probably in for a service call and/or possibly water heater replacement if unit is more that 5-6 years old.
Your water heater plugs into outlet. Check outlet with cheap circuit analyzer to make sure the unit is receiving correct polarity without line interference.
If unit is in the attic, then add more venting to soffit and roof so pilot is not being snuffed out by hot air. If unit is in basement, then open some doors and a window and see if unit needs more air.
Most gas water heaters require yearly cleaning and service.
Clean the combustion parts and tubes.
Clean the air intake.
Have gas company check gas pressure.
Open following link for possible illustrations:http://waterheatertimer.org/How-to-install-gas-water-heater.html#troubleshoot
The problem can be bad gas control valve, air in gas line, low gas pressure, gas shut off handle not fully parallel with gas line, dirty combustion parts, lack of combustion air, improper venting. Or combination of all things. It's an electronic gizmo, anything can be bad or shorted, and repair may not last long.
Without a trained service technician to ohm-test the parts using correct service manual, then we are guessing at the cause.
Power vent water heater implies that you have side wall venting which must be replaced with another side-wall vented unit -or- it implies rapid reheating of water.
If water heater is more than 6 years old, you might be money ahead by installing a new one from local box store. Avoid the power vent and electronics. Local box store will have passive roof-venting type water heater BUT box store does not sell side-wall power vent. If your power vent goes up through the roof, then box-store variety gas water heater will work. Total cost $350 do-it-yourself for 40 gallon gas.
Or get 40 gallon 240Volt electric for $220 and connect to circuit breaker box. Requires no venting, and is easy to repair for years to come.
Or small 120Volt electric that plugs into outlet to tide you over until gas repairs can be made.
Look for scratch-n-dent models and always offer 10% off.http://waterheatertimer.org/How-to-install-gas-water-heater.html
Shower uses 5-9 gallons hot water.