Quantum and classical integrable sine-Gordon model with defect