Your water heater's label should include directions on how to relight your pilot light. If this doesn't work, or if it goes back out right away, you could have a bad control thermostat. Your plumber will be able to pinpoint the exact issue and provide comprehensive solutions whether you require repairs or replacement.