Question: how to file for medicare and social security?
Answer: Apply online at Social Security. ... 
Visit your local Social Security office.
Call Social Security at 1-800-772-1213 (TTY: 1-800-325-0778).
If you worked for a railroad, call the RRB at 1-877-772-5772.