The plants are too crowded in the container and they aren't getting enough sunlight. Basil often don't last long indoors, at least not in a healthy condition, and they have a limited lifespan even under better conditions. Try taking some clippings and root new plants. Put fewer in the next pot and place outside or in brighter light.
I hope you meant "prune", not preen.