The network may ask you to pay a deposit as a result of your credit check. This may be in addition to the upfront payment of your device. The network then returns the deposit after you establish a good payment history with them.
EE will typically return your deposit after you've paid six consecutive bills on time. For Three, it's after you've paid 12 consecutive bills on time. Please contact your network directly for more information.