Please return the egg to the nest and leave it alone. Many birds in the US are protected under the Migratory bird act, which prohibits the taking and keeping of eggs, chicks and adults. While sparrows are not protected, you mentioned you are not sure what kind of bird it was.
At the risk of it...