Your symptom sure seems like the issue with my mom's sewing machine. BobK's on the right track with this.
When the machine slows down, it's usually mechanical, not electrical. (Though Alec_t has seen this before).
Good luck. Check the gearing (if there is any), or if rubber belt is ok...