Medicare Part B is partly funded through premiums paid by the participants, but there's no charge to them for Part A.
Part D is still a federal program, rather than state run. The charges to the participants vary wildly, though, depending on which insurance company and which plan they choose.