It would depend on the tax regulations in the states you worked and lived in, but normally you would pay tax to the state you are a resident of on all of your income earned in all states. Then, if you had to pay tax to states for which you were a non-resident, you would get a credit for the taxes paid to the non-resident state against the tax in your resident state.
In general you have to declare income in any state you were physically in while you earned income. However, most states have a minimum amount of income you can earn under which you are not required you to file a tax return. You would need to review the filing requirements of each state you worked in to see how to proceed.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"