The validity of baptisms has nothing to do with the denomination. All that is required for a valid baptism is the matter (water) and form (“I baptize you in the name of the Father, and of the Son, and of the Holy Spirit”). Any person can baptize.
The sacrament of marriage can be validly conferred by any baptized man (who is free to marry) upon any baptized woman (who is free to marry) and vice versa as long as proper consent is given on both sides. For this reason, the validity of marriage also does not depend upon the denomination.
All of the other sacraments require valid orders. So the Eucharist, Confirmation, Confession, Anointing of the Sick, and Ordination can only be conferred by a minister who is validly ordained.
The only non-Catholic denominations that have valid orders are the Eastern and Oriental Orthodox churches. All of their sacraments are valid.
Now, there may be other isolated instances where a denomination has valid orders (e.g., if a validly ordained bishop left his Apostolic church and went to form some wacky new breakoff denomination) but all of these would have to be analyzed on a case by case basis.
None of the Protestant denominations have valid orders.