Ministers should “draw out” lessons from Thatcher-era coal mine closures in the move away from oil and gas, a Conservative shadow minister has suggested.