2000 volvo s40 fuel tank and gauge problems

I can’t fill the fuel tank. It cuts off without much fuel in the tank and the guage remains at quarter tank.