On the first step, the methoxyde-anion pushes an electron pair to a carbon connected with oxygen, bonds with it, and pushes an electron pair from the C-O bond to oxygen, breaking the bond, and shifting the negative charge to oxygen.
On the second step, the epoxide gets protonated by the methanol solvent, and releases methoxide back to the first step as a catalyst.