How do i remove the bearings as they seem to be wedged inside .its difficu;t to hit them out due to th spacer inside.

sometimes the best *drift* to use in these situations is a 300mm long piece of solid round-section bar, about 6-8mm dia. You need to get a good purchase on the edge of the bearing, and make sure your hammer blow is sharp and sweet........move the wheel around, repeat, and with one or two good blows, the bearing will come out. Once the first side is out, the other side is easy - use the spacer as a second 'drift', and a larger piece of solid round-section as the outer drift. The other bearing will be heaps easier to remove, because you have a lot more room to get a decent *belt* inusing a drift/long flathead screwdriver and a hammer may be the go, assuming you can get purchase to force it out.