Muthana - it depends when the journal ceased publication. If it's say within the last 5-years, it most likely retains some sort of online presence that is not updated - but just acts as a repository. There may be an agreement with existing subscribers (especially say library institutions) that the site remains available for a period of time - for access to back copy.
In 2000, an article of mine was published in the last volume and edition of Advancing Clinical Nursing. As far as I know, the only way to get access to that article - or that journal - is via authors who have kept copy.
If the journal is published by a legitimate publisher, then the previously published volumes and issues are accessible from the publishers' website. For example, Springer ceased publication of a nursing journal "Journal of Nursing Law". The published 15 volumes can still be accessed through Igenta Connect.
If the journal is published by a predatory publisher. The pass issues and even the published paper would no longer be available.