In this paper we generalize the partition function proposed by Ponzano and Regge in 1968 to the case of a compact 3-dimensional simplicial pair (M, ∂M). The resulting state sum Z[(M, ∂M)] contains both Wigner 6j symbols associated with tetrahedra and Wigner 3jm symbols associated with triangular faces lying in ∂M. In order to show the invariance of Z[(M, ∂M)] under PL-homeomorphisms we exploit some results due to Pachner on the equivalence of n-dimensional PL-pairs both under bistellar moves on n-simplices in the interior of M and under elementary boundary operations (shellings and inverse shellings) acting on n-simplices which have some component in ∂M. We find, in particular, the algebraic identities -involving a suitable number of Wigner symbols -which realize the complete set of Pachner's boundary operations in n = 3.The results established for the classical SU (2)-invariant Z [(M, ∂M)] are further extended to the case of the quantum enveloping algebra U q (sl(2, C)) (q a root of unity). The corresponding quantum invariant, Z q [(M, ∂M)], turns out to be the counterpart of the Turaev-Viro invariant for a closed 3-dimensional PL-manifold.