Step 1: Understanding the Concept
Heterocyclic compounds have atoms other than carbon in the ring.
Step 2: Check the options
Pyran has oxygen in a six-membered ring. Furan has oxygen in a five-membered ring. Nitromethane is an open chain compound. Thiophene has sulphur in a five-membered ring.
Step 3: Conclusion
Thiophene is the compound with S in its ring.
Final Answer:
Thiophene contains sulphur in its ring.
\[ \boxed{\text{(D) }\text{Thiophene}} \]