You can log training time in a simulator but you can't log PIC time. The rules on logging are in 14 CFR 61.51. There's no requirement anywhere that I can see to have a medical and/or flight review in order to log time. Logging training time in a simulator is allowed by 61.51(h):