Both of these things can be the results of meds.

I've had bad scatterbrained problems in the past. I quit taking the vistaril I was on for anxiety because of it. I also had to go off the topomax last time I was on it as a result of what it did to my memory. I hope you can get things straightened out.