>works now and then and some times the tube is totally blocked
When it's working, it shouldn't be, and is operating without input control. You have not finished setting the DC bias, ie. Since the grid leak leak is blocked by a cap, there is no set DC condition on the grid. In a grounded cathode amplifier, the grid must be more negative than the cathode for it to work properly. Counting on thumbs, we know that a 12AX7 is happy around 1mA of current. Current times the cathode resistor = the cathode voltage, usually about a volt. So that means we need the grid to be somewhere between 0 and 1 volt. Tieing a 1M between the grid and ground achieves this without creating so much load that the previous stage or geetar isn't loaded down. Now the tube wants to bias up and something less than 1V is very little in the grand scheme of thangs. With enough AC signal, you need only touch the grid momentarily with your finger ( not recommended ) and the tube will start passing signal, but the bias is fluctuating and it probably sounds funky pumpy. If you stop passing signal, the tube loses bias and quits working. I suppose with a leaky cap or some sorta gremlin it might work intermittently. Perhaps a big AC spike my look enough like DC for the tube to try to bias up.