Purchasing more space in iCloud does not give you more space on your device, it only gives you more space in your iCloud account to sync data and back up your device. If you're out of space on your device, you'll have to remove something to make more room.